I actually worked on two different DB abstraction classes for PHP before the PEAR one was good enough to switch to it. Now, that's one of those things that you'd be a fool to write yourself.
Of course, that just abstracts the connections and the basic operations. You still write your own SQL.
Of course, that just abstracts the connections and the basic operations. You still write your own SQL.