I\'m specifically looking to extend the PDO object somehow to add an internal counter every time a query is executed. I want to do this in a way were I wouldn\'t h
PDO
Just execute:
SHOW PROFILES;
The greatest Query ID is what you are after. This will also give you information about the last 15 (default) query execution time.
Query ID