terryds Posted July 9, 2014 Share Posted July 9, 2014 I want to make a child class from the PDO class. I want to count the queries by the parent class, so I make a property called $queries. I'm thinking about if(parent::query) { ++$this->queries }; But, i don't know where to put it. Please, help me. Link to comment Share on other sites More sharing options...
justsomeguy Posted July 9, 2014 Share Posted July 9, 2014 Override the query method and put it there. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now