Is there A PHP5 optimized Class for accessing databases

Asked by Frank, a student from New York

Do you know of a PHP Class for accessing databases that is optimized for PHP5 (mysqli_ functions) and that isnt part of PEAR?

The Solution

PHP5 brought many improvements including better XML DOM parsing, improve object orientation, and also the new mysqli over the old mysql function. If you’re interested on documented reasons to switch to the new mysqli functions then check out this article by Zend on the issue.

In regards to Frank’s question, check out the following simple class to access databases using the mysqli functions.