It provides functions for connecting to a MySQL database server, select the database to access, execute queries, retrieve query results rows in arrays, execute a query to return a single result row in a single call, etc...
The class may optionally generate a log of the executed queries. When a query fails it may send a warning message to a given site administrator e-mail address.
this class will send an email evrytime that there is an error with some query, in this way
will be simpler to monitor the site and to see if there is any kind of weird problem
with MYSQL/query