Page 1 of 1

Help please take a look, nouthing i try works!.

Posted: Fri Jul 29, 2011 6:40 am
by bloodling
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.

Re: Help please take a look, nouthing i try works!.

Posted: Fri Jul 29, 2011 11:57 am
by flying_circus
bloodling wrote:Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/a4541804/public_html/main/login2/register.php on line 118

Without downloading your code or trying to produce the error, the above tells me one of a couple things:

1. You have a typo in your code, if the rest of your mysql queries are working correctly
2. There was a problem connecting to the database or you closed the connection before running the query.

Have a close look at the mysql_query() manual page

http://www.php.net/manual/en/function.mysql-query.php