clsDB.inc is a PHP class for making connections to a MySQL database. Its features include error checking, error logging, optional error output, email notification of errors, devel mode for a development server, and test mode for outputting the queries to a page with or without execution. It returns pertinent information when the query is run (number of records updated, insert id, etc). Results are left as a MySQL result so that they may be manipulated by any MySQL functions. The class can also perform table grooming.