It depends where you make your connection. You can open and close the database connection within your classes or you can make a global connection on each page and pass that to your classes. I would go with the latter. Make a connection(using pear), set it to get results in object form and write a function in your class that sets the db connection. OR write your member functions to take the $db object as an arguement.