I have just started learning php5 OOP and am having trouble understanding when to create a new class in a new file.
For example i have created database connection class with a method for connecting to a database.
However i now want to have a method that runs a mysql_query using this connection. should i create this method in the same class? or create a new class for it.
I also want to lead this on to creating methods for running mysql_fech_row functions ect.
What is the best way to code for this using OOP?
Sorry this is probably a stupid question.