Try PEAR DB. http://pear.php.net/package/DB
It's a database abstraction layer, which means that you can change DB later, with less hasle.
http://www.powerpostgresql.com/Downloads/database_depends_public.swf :)
I really dislike db abstraction layers and PEAR::DB being one of the worst of all ;p
Just look at the ugly code like the LIMIT emulation for DBMS that don't support it native. If you want to use the limited feature set provided by PEAR::DB there is little point in using PostgreSQL at all. Just pick a stupid storage engine like MySQL or SQLite and go on ;)
---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your message can get through to the mailing list cleanly