Date: 09/30/00
- Next message: Boaz Yahav: "RE: [PHP-DB] Problem with php and mysql"
- Previous message: Todd Cary: "Re: [PHP-DB] Not getting URL data"
- Next in thread: Boaz Yahav: "RE: [PHP-DB] Problem with php and mysql"
- Maybe reply: Boaz Yahav: "RE: [PHP-DB] Problem with php and mysql"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Boaz Yahav: "RE: [PHP-DB] Problem with php and mysql"
- Previous message: Todd Cary: "Re: [PHP-DB] Not getting URL data"
- Next in thread: Boaz Yahav: "RE: [PHP-DB] Problem with php and mysql"
- Maybe reply: Boaz Yahav: "RE: [PHP-DB] Problem with php and mysql"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

