mysql_num_rows(): supplied argument is not a valid
Posted: Mon Aug 13, 2007 6:59 am
Hi
can you see where the problem is:
code:
error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource
thanks
can you see where the problem is:
code:
Code: Select all
function getrank($keyword, $listing){
$bid3=mysql_query("SELECT maxb FROM listing WHERE id='$listing'");
$bid4=mysql_fetch_array($bid3);
$mybid=$bid3['maxb'];
$info5="SELECT * FROM listing WHERE keywords LIKE '%$keyword%' AND maxb > $mybid ";
$info6=mysql_query($info5);
$count_row =mysql_num_rows($info6);
$rank = $count_row +1 ;
return $rank;
}Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource
thanks