raffuk Posted April 17, 2007 Share Posted April 17, 2007 Hello guys, I've tried to find on google and I couldnt find anything for it. I just wanna know how to do a function to count how many records have been found in the query? Thanks. Link to comment https://forums.phpfreaks.com/topic/47354-solved-how-to-count-how-many-records-have-been-found-in-the-query/ Share on other sites More sharing options...
xenophobia Posted April 17, 2007 Share Posted April 17, 2007 If you are using MySQL. $qry = mysql_query("SELECT * FROM table;"); $rows = mysql_num_rows($qry); echo $rows; Key function: mysql_num_rows(); Link to comment https://forums.phpfreaks.com/topic/47354-solved-how-to-count-how-many-records-have-been-found-in-the-query/#findComment-231016 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.