PDA

View Full Version : Display number of queries


guvenck
02-07-2006, 01:14 PM
Hello,

I would like to display the number of MySQL queries executed during a php script at the footer of my page. How can I do this?

Kid Charming
02-07-2006, 05:59 PM
Just set up a counter in your script and increment it every time you run a query.

guvenck
02-07-2006, 06:06 PM
That would be not the exact solution, that would require me to edit every php script by hand. Maybe MySQL has something like this built-in.

Kid Charming
02-07-2006, 06:14 PM
Nope. MySQL doesn't know what script a query came from.