close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

error Helper_PHP.php

Thread began 12/07/2009 9:47 am by Kamen Nikolov | Last modified 12/15/2009 1:47 pm by Jimmy Wu | 1358 views | 5 replies |

Kamen Nikolov

error Helper_PHP.php

Hello,

I am new in this. I purchased the User Registration Solution Pack, set it up and it is working OK so far, but I am getting an error in WA_SecurityAssist/Helper_PHP.php when I tried to log in as user on line 14 and 20 using users_LogIn.php:
Line 14: mysql_select_db($WA_Auth_Parameter["database"], $WA_Auth_Parameter["connection"]);
Line 20: $WA_Auth_RS = mysql_query($WA_Auth_loginSQL, $WA_Auth_Parameter["connection"]) or die(mysql_error());

I was wondering do I have to replace anything on these two lines like my database Name (my_data) and my connection name (../Connections/my_connection)?

Could this be an Apache web server problem or what else.

I will appreciate any help.

Thank you,

KN

Sign in to reply to this post

Jimmy Wu

In the user registration solution pack, there is a connection file already in the Connections folder. You should modify that connection to have your server information in it. That would be the simplest way to get the connections to work correctly.

Sign in to reply to this post

Kamen Nikolov

error

Hello,

Tank you for your response. The connection is working. This is the error/warning I am getting:

Warning: mysql_select_db() expects parameter 2 to be resource, null given in C:\xampp\htdocs\Luba\WA_SecurityAssist\Helper_PHP.php on line 14

Warning: mysql_query() expects parameter 2 to be resource, null given in C:\xampp\htdocs\Luba\WA_SecurityAssist\Helper_PHP.php on line 20

Sign in to reply to this post

Jimmy Wu

What is the name of the connection you are using?

Also, does your line 59 of the users_Login.php page look like this:
"connection" => $localhost,

or is something else listed to the right of the arrow?

Sign in to reply to this post

Kamen Nikolov

Thank you Jimmy,

I got this one working. I have another problem after a got everything working. When users register, they will receive an email and they will verify their email and will login into their profile. The problem is that if I update my profile locally is working when update on-line it is not.

You can try it yourself register at users_Registration.php or users_Registration_Simple.php and try to update your profile.

I have been over the code many times and can figure it out. Tank you for your help in advance.


This is the code:

Attached Files
users_Profile.php.zip
Sign in to reply to this post

Jimmy Wu

I copied your response to a new thread:
showthread.php?t=8455

Since its a different issue, it makes the forum more organized if there is a new thread for it. Someone will take a look at this issue and get back to you on it.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...