ram4nd Posted October 8, 2009 Share Posted October 8, 2009 I have to get 0 for answer when there are 0 rows. Right now it returns 1 even when there aren't suppose to be any rows. $count = mysql_num_rows(mysql_query('SELECT id FROM members WHERE ref_id='.(int)$ref)); Link to comment https://forums.phpfreaks.com/topic/176974-solved-simple-count-question/ Share on other sites More sharing options...
ram4nd Posted October 8, 2009 Author Share Posted October 8, 2009 sorry, not code problem; this problem comes with my data in table. Link to comment https://forums.phpfreaks.com/topic/176974-solved-simple-count-question/#findComment-933101 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.