Problem with php and mysql

From: Date: Sat, 30 Sep 2000 18:20:33 +0000
Subject: Problem with php and mysql
Groups: php.db 
Request: Send a blank email to php-db+get-3187@lists.php.net to get a copy of this message
Hi, I have a little problem with php and MySQL. This is an extract of the code of my page : $test = "SELECT * FROM Test WHERE $Toto <> 1"; $rtest = mysql_db_query("test",$test) while($etest = mysql_fetch_array($rtest)) { echo $etest["Numero"]; } While I execute this page, I have the following error : Warning: Supplied argument is not a valid MySQL result resource When I put in the code : echo $rtest; , I have the following response : Resource id #2 Does somebody has an answer or an explication ? Thanks a lot. Emmanuel

« previous php.db (#3187) next »