CREDITS:

This class is made by unreal4u (Camilo Sperberg), however, the initial idea isn't mine, so I would like to thank Mertol Kasanan, this class is based on his work.
See http://www.phpclasses.org/browse/package/5191.html for details.

ABOUT THIS CLASS:

In a glinch:

Detailed:

This package implements a MySQL database access wrapper using the MySQLi extension.

There is class that manages MySQL database access connections so only one connection is established during the same PHP script execution.

Another class implements other database access functions like executing queries with prepared queries, measuring the time the queries take to execute and the memory usage, retrieving query results into arrays, the number of result rows, last inserted record identifier and log executed queries to a valid XML log file or directly into your page.

If the query takes just too long, you can cache the query result into an XML file, and you can also handle errors.

This package has been extensivily tested with xDebug, APC and Suhosin so that no errors are present.

USAGE:

PENDING:

config.php:

define('MYSQL_HOST', 'localhost');    // your db's host
define('MYSQL_PORT', 3306);           // your db's port
define('MYSQL_USER', 'db_mysqli_v4'); // your db's username
define('MYSQL_PASS', 'db_mysqli_v4'); // your db's password
define('MYSQL_NAME', 'db_mysqli_v4'); // your db's database name
define('MYSQL_CHAR', 'utf8');         // the used charset

VERSION HISTORY: