Portal Home > Knowledgebase > Articles Database > PDO question


PDO question




Posted by etogre, 03-27-2008, 12:24 PM
How can I keep track of how many queries are executed when using PDO? For like a footer of a website (i.e., 7 Queries)

Posted by etogre, 03-27-2008, 04:01 PM
I was told I would need to write a custom class to accomplish this (e.g. whenever a PDO statement is executed increment a public variable) But does anyone know a way to do this by extending PDO?

Posted by Adam-AEC, 03-27-2008, 05:19 PM
Untested but might help? Disclaimer: I'm more Ruby than PHP

Posted by etogre, 03-27-2008, 06:42 PM
Nope, good guess though. Bah, I just went back to my own database abstraction interface. Keep things simple, easy for me to add-on and know what it does.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read