mysql_num_rows error

From: Date: Sun, 23 Sep 2001 05:25:02 +0000
Subject: mysql_num_rows error
Groups: php.general 
Request: Send a blank email to php-general+get-117239@lists.php.net to get a copy of this message
I am new to php and that the folowing error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/tbonestu/public_html/smallimages.php i dont know what i am doing wrong here is the code: @ $db = mysql_pconnect(connect info); mysql_select_db("images"); $query = "select * from images where type =".$type.""; $result = mysql_query($query); $num_results = mysql_num_rows($result);

« previous php.general (#117239) next »