tibberous Posted July 16, 2008 Share Posted July 16, 2008 I know you can use mysql num rows, but if you have limits you don't get the total. Is there a way to get the count of the query your running, without taking a performance hit? Link to comment https://forums.phpfreaks.com/topic/115118-should-the-count-and-select-be-two-seperate-mysql-queries/ Share on other sites More sharing options...
Fidsah Posted July 16, 2008 Share Posted July 16, 2008 a "select count(*) from table where values" statement doesn't require much performance, as I recall. You should be able to use it fine. Link to comment https://forums.phpfreaks.com/topic/115118-should-the-count-and-select-be-two-seperate-mysql-queries/#findComment-592022 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.