jib Posted June 12, 2008 Share Posted June 12, 2008 Is it possible to count the number of entries in your result variable, for example $result = mysql_query($sql); then find out how many entries are in $result, so I can print the total number of records found. I tried sizeoff($result) but that didn't work Cheers Quote Link to comment https://forums.phpfreaks.com/topic/109839-solved-counting-the-number-of-results-from-an-sql-query/ Share on other sites More sharing options...
corbin Posted June 12, 2008 Share Posted June 12, 2008 http://php.net/mysql_num_rows ;p Quote Link to comment https://forums.phpfreaks.com/topic/109839-solved-counting-the-number-of-results-from-an-sql-query/#findComment-563654 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.