PEAR DB Module Classes
The PEAR DB module has four main classes:
The DB class is the primary class. It's used for connecting to the database server and for checking whether a given object represents an error. When connecting, it returns a connection object to be used for interacting with the database server.
This class provides the interface to the methods available through a connection object. Each database engine-specific DB driver returns an object of this class that has methods specific to the type of engine you connect to.
The result set class. Statement-execution methods return an object of this class when a statement produces a result set. You can use the object to access data and metadata for the result.
This is the error class. Objects of this class support methods for obtaining diagnostic information when an error occurs.