Log in

View Full Version : I need help with this Please look!



bloodling
07-29-2011, 11:48 AM
I have just built a temporary website for this error http://shift.site40.net/main/login2/
the .zip file has the source code in it " i have edited my user information in it"

The error is on http://shift.site40.net/main/login2/register.php

Just enter fake information and press register and you will get the error.

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/a4541804/public_html/main/login2/register.php on line 118



I still have not figured out the error.

JShor
07-30-2011, 01:36 AM
The error means that it is not connecting to the database correctly. It is throwing a mysql_connect() error, and because the script is unable to connect to the database, you cannot run a mysql_query().

This almost always happens because the database credentials in the mysql_connect() are incorrect.

Double-check your credentials on mysql_connect() and make sure they're correct.