Databases: PHP MySQL Error reporting
José Augusto Ferreira Franco (contact me)
This is a simple class that can be used to process errors that occur during an access to a MySQL database.
The class can establish a MySQL database server connection using given database connection parameters.
It also provides means to process any errors of execution of failed MySQL database access operations that use the connection established by the class.
The class can either log the errors in a given file or send the error messages by e-mail to a given address.
The class can generate error messages in either English and Portuguese from the error numbers.
Click here for detailed information about this class on phpclasses.org