Results 1 to 2 of 2

Thread: I need help with this Please look!

  1. #1
    Join Date
    Jul 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I need help with this Please look!

    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.

  2. #2
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    557
    Thanks
    8
    Thanked 66 Times in 66 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •