Warning: Supplied argument is not a valid MySQL result resource

From: Date: Wed, 30 Aug 2000 12:30:09 +0000
Subject: Warning: Supplied argument is not a valid MySQL result resource
Groups: php.general 
Request: Send a blank email to php-general+get-14350@lists.php.net to get a copy of this message
Hi all, when i try to connect to Mysql server from the localhost, it says the above message.here is the piece of code. It says that the argument to mysql_num_rows $res is not a valid result. But it connects to the server and the table contains some data also. Please mail to my address, i am not in the list now. $res = mysql_db_query("company","select * from products"); $num = mysql_num_rows($res); echo"$num Records found<br>"; Thanks, mano _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.

« previous php.general (#14350) next »