note 16646 rejected from function.mysql-num-rows by jimw

From: Date: Thu, 08 Nov 2001 00:07:51 +0000
Subject: note 16646 rejected from function.mysql-num-rows by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20582@lists.php.net to get a copy of this message
Creating search feild but having problem with $num_mysql_rows. I have gone through endless documents and have found nothing which hints to the reason why? Error: Warning: Supplied argument is not a valid MySQL result resource in: CODE: mysql_select_db("reisa"); $SQL = "select * from agents where ".$searchtype." like '%".$searchterm."%'"; $result = mysql_query($SQL); $num = mysql_num_rows($result); No result is shown. Please help!

« previous php.notes (#20582) next »