note 31844 added to function.mysql-num-rows

From: Date: Tue, 06 May 2003 11:49:49 +0000
Subject: note 31844 added to function.mysql-num-rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-47576@lists.php.net to get a copy of this message
When I use the following code: $numresults=mysql_query("SELECT * FROM amx_bans ORDER BY $order"); $numrows=mysql_num_rows($numresults); I get the following warning: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/subzero/public_html/baninterface/index.php on line 166 Line 166 is the following line: $numrows=mysql_num_rows($numresults); What could be causing this? -- http://www.php.net/manual/en/function.mysql-num-rows.php http://master.php.net/manage/user-notes.php?action=edit+31844 http://master.php.net/manage/user-notes.php?action=delete+31844 http://master.php.net/manage/user-notes.php?action=reject+31844

« previous php.notes (#47576) next »