0

Possible Duplicate:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
php warning mysql_fetch_assoc

I am using PHP with a MySQL backend. When I try to connect to the database I am getting the following error.

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/htdocs/somefile.php on line 18

Any ideas as to what is wrong?

Community
  • 1
  • 1
Vinay
  • 1

1 Answers1

0

You probably just need a proper MySQL connection, check your database settings make sure the database and tables exist. Posting the code could be helpful if your are still stuck, especially the mysql_connect() part or whatever function calls you are using to connect.

Stephane Gosselin
  • 9,030
  • 5
  • 42
  • 65