This question already has an answer here:
Can someone help me to solve this error:
mysql_num_rows() expects parameter 1 to be resource
This is my code:
$query = mysql_query($query);
$numrows = mysql_num_rows($query);
if ($numrows > 0){
</div>