In a new post Richard Heyes links to a replacement for the popular PEAR::DB package:
PEAR::DB is all well and good if you want to connect to multiple databases (I assume, I've never actually used it with anything other than mysql) but it is somewhat hefty on the bad side of 60k. Not a good thing if you're not using some sort of accelerator and have a high traffic site. Here's a class which replicates the PEAR::DB API (the bits that I use anyhoo) and weighs in at a much nicer ~11k. Sweet.
The class is posted for download here as a simple PHP source file with functions and values named similar to those in the PEAR::DB package.