note 31844 rejected from function.mysql-num-rows by alindeman

From: Date: Tue, 06 May 2003 11:56:37 +0000
Subject: note 31844 rejected from function.mysql-num-rows by alindeman
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-47577@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?

« previous php.notes (#47577) next »