Why does mysql_num_rows($result) return 1 even if $result returns empty result set?
$resut=mysql_query("select * from tablename where column1='$memberid' and (TIME_TO_SEC(TIMEDIFF(NOW(),when_submit))/60<2)")or die(mysql_error());
$count=mysql_num_rows($result);
when I echo $count
, I get
1
.