This tutorial will show you how to create an object-oriented database abstraction class for MySQL. Besides the basic functions, this manager class can summarize total time spent with the database connection and query execution, and counts how many queries were executed during your PHP script.