chrischen Posted January 6, 2009 Share Posted January 6, 2009 Is there a point where mysql_num_rows stops working? And I'm assuming it's faster than summing a value of 1 for each row right? Link to comment https://forums.phpfreaks.com/topic/139749-row-count/ Share on other sites More sharing options...
xtopolis Posted January 7, 2009 Share Posted January 7, 2009 mysql_num_rows only returns the number of rows in the result set. I assume you mean to SELECT * or SELECT colName VS SELECT COUNT(*) or SELECT COUNT(colName) and simply gather the number of rows in the table. Why not test it yourself? Also, I advise to not use * if you are only after a total. Link to comment https://forums.phpfreaks.com/topic/139749-row-count/#findComment-731324 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.