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... Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.