Jump to content

Authenticate.php SQL Error help


Recommended Posts

For some strange reason when i go to login, the URL in Mozilla changes to ....Authenticate.php with a blank screen. So i check my error logs to see what is the problem and this is it


PHP Warning:  mysql_query(): supplied argument is not a valid MySQL-Link resource in /usr/home/ben/public_html/mafia/authenticate.php on line 30


line 30 is


$uq=mysql_query("SELECT userid FROM users WHERE login_name='{$_POST['username']}' AND `userpass`=md5('{$_POST['password']}')",$c) or die(mysql_error());


I have deleted all the tables,re-uploaded the game files and yet still the same error? any help please

Link to comment
Share on other sites

  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...