This tutorial will show you how to create an abstract class which can deal with any database table, and then how to create subclasses containing the implementation details for each individual table within your application. An introduction to OO functionality within PHP- Creating a Class with Properties and Methods- The 'constructor' method- Extending a Class- Creating an Object- Accessing an Object's Properties and Methods- Objects and Sessions.
Using PHP Objects to access your Database Tables (Part 1)By Tony Marston.