SyncViews Posted December 17, 2007 Share Posted December 17, 2007 How do I find how many results an sql generated? I took a look here http://www.w3schools.com/php/php_ref_mysql.asp but couldn't find a function to return this I could use a while loop to go through the results increasing a counter but that seems a realy ineiffient way to do it... Link to comment https://forums.phpfreaks.com/topic/82017-solved-get-number-of-results-from-sql-query/ Share on other sites More sharing options...
rajivgonsalves Posted December 17, 2007 Share Posted December 17, 2007 you use mysql_num_rows function http://php.net/mysql_num_rows Link to comment https://forums.phpfreaks.com/topic/82017-solved-get-number-of-results-from-sql-query/#findComment-416752 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.