phpMyDB is a PHP class for using MySQL databases. It also has a built-in query cache and a great debugger, and is easy to use. It uses the fileCache class to allow caching of the query result in a really simple way that is transparent to the programmer.