31
Mar

I have my website hosted with goDaddy. I'm trying to create a registration form and login system. What I want to do is be able to allow users to register and then be able to keep track individually of each user's account balance when they login. So, what I did was use godaddy's SQL interface to create a table. Then, I used those same fields I created in the table and modified an exisiting PHP registration script I found online to accomodate my data fields. The problem is that I keep getting a socket error when entering registration information. Godaddy tech support insists that it is an issue with my script and not with their SQL software. Unfortunately, there is not enough room to copy the entire script here but I followed the script from the following website: http://evolt.org/php_login_script_with_r…

The script on my website is located at www.weeklydraftleague.com/registration.p…

Any suggestions or ideas?


Answer:
What is the error you are getting? Is the initial mysql connection succeeding?

Edit: I managed to catch your errors. Here's what you're getting -

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/content/w/e/e/weeklydraft/html/reg… on line 15

Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/content/w/e/e/weeklydraft/html/reg… on line 16

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/content/w/e/e/weeklydraft/html/reg… on line 27

Take a look at the code at those line numbers, and make sure the connection variable you are passing to the mysql_* functions is the same as the variable you are setting in database.php.


Answer:
Do you have your database.php setup somewhere with your connection settings to the database?

Answer:
you probably have your website hosted on a Windows server which is incompatible with PHP change it to a Linux server and everything will work!

Book Mark it-> del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Netscape | Yahoo | BlinkList

This entry was posted on Monday, March 31st, 2008 at 4:41 am and is filed under Programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or TrackBack URI from your own site.

Leave a reply

Name (*)
Mail (*)
URI
Comment