A perfect (IMO) MySQLi extension which I wrote a few years back that extends the PHP 5 MySQLi object