Aureole Posted September 7, 2007 Share Posted September 7, 2007 Say if I have a page that has 5 queries on it, is there a way to calculate that without having to manually write "This page used 5 queries". A way that if I added a 6th query it would automatically update? Thanks! Link to comment https://forums.phpfreaks.com/topic/68337-total-queries/ Share on other sites More sharing options...
ToonMariner Posted September 7, 2007 Share Posted September 7, 2007 well you could after each query increment a counter... not sure of any way to detect the numerber of queries run without doing such but someone will correct me I am sure. Link to comment https://forums.phpfreaks.com/topic/68337-total-queries/#findComment-343614 Share on other sites More sharing options...
Jessica Posted September 7, 2007 Share Posted September 7, 2007 If you used a function to do your queries you could do a counter like suggested much easier. Link to comment https://forums.phpfreaks.com/topic/68337-total-queries/#findComment-343615 Share on other sites More sharing options...
Aureole Posted September 7, 2007 Author Share Posted September 7, 2007 A Function to do my queries? I don't get what you mean. ??? Link to comment https://forums.phpfreaks.com/topic/68337-total-queries/#findComment-343620 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.