PEAR::DB replacement class

Contents

Debug

Since debugging SQL errors isn't fun, I've added a debug mode which can be turned on using DB::$dbug = true; This will enable you to see what queries are being performed, how many rows and cols each is returning and whether they were successful or not (denoted by red colouring).

The debug window is displayed at the bottom of the request using a register_shutdown_function(). If you don't use MSIE you therefore may get some blank pages if you use this. But I use MSIE, so I don't.