mysql_query failure

From: Date: Thu, 15 Feb 2001 22:51:51 +0000
Subject: mysql_query failure
Groups: php.db 
Request: Send a blank email to php-db+get-6670@lists.php.net to get a copy of this message
I am getting this weird error with my mysql database. I have 100 pages with code to access my database. All my queries work except one. Here is an example $con = mysql_connect($DB_SERVER, $DB_USER, $DB_PASS) or die ("Cant connect"); mysql_select_db($DB_NAME); $rst = mysql_query("SELECT * FROM Description",$con) or die ("Invalid query"); For some reason I do not get a result back. I tried the query on the mysql server and everything works fine. I get this error when fetching a row Warning: Supplied argument is not a valid MySQL result resource in /home/httpd/html/Contacts/exportation/exportationContact.php3 on line 19 I really dont know what is going on . I never had trouble with this before and I am using the same lines all over my code.

« previous php.db (#6670) next »