shaunrigby Posted March 24, 2007 Share Posted March 24, 2007 Hi Guys, I Have a Count query in my script, and for test purposes there are 4 rows in my table however the query is returning numItems - 1 $count = mysql_query("SELECT COUNT(*) AS numItems FROM gallery WHERE `galleryid` = '" . $row['galleryid'] . "'") or die("Error: " . mysql_error()); Link to comment https://forums.phpfreaks.com/topic/44123-solved-why-does-this-not-return-an-accurate-number/ Share on other sites More sharing options...
shaunrigby Posted March 24, 2007 Author Share Posted March 24, 2007 It was a problem inside my db Link to comment https://forums.phpfreaks.com/topic/44123-solved-why-does-this-not-return-an-accurate-number/#findComment-214263 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.