Hi. How do I find mysql_num_rows for an object.
This gives an error:
$query = mysql_query($sql) or die(mysql_error());
$row = mysql_fetch_object($query);
echo mysql_num_rows( $row );
Warning: mysql_num_rows() expects parameter 1 to be resource, object given