note 49396 rejected from function.mysql-num-rows by nlopess

From: Date: Wed, 26 Jan 2005 17:14:09 +0000
Subject: note 49396 rejected from function.mysql-num-rows by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-84032@lists.php.net to get a copy of this message
Note Submitter: webmaster at cdemion dot com ---- Ok I've followed pretty well your arguments but why? do I get this : Warning : mysql_num_rows(): supplied argument is not a valid MySQL result resource by running this $link = mysql_connect($Server, $User, $Pass); mysql_select_db($DB, $link); $result = mysql_query("SELECT * FROM comments", $link); $num_rows = mysql_num_rows($result); echo "$num_rows Rows\n"; I've obviously tried other options but I'm not getting the proper result. It should return '0'

« previous php.notes (#84032) next »