I wonder if there's a useful library or lightweight framework only for database connectivity. What I need is something that lets me use a MySQL database with prepared statements in a secure way, without thinking a lot about gcc_magic_quotes and stuff like that. Something object oriented would be nice to have, with some convenience when fetching data from the DB. I don't want to employ a giant framework like cake or symfony just for that. It should be something really lightweight, just for this purpose.
Please, if you recommend something, write a little about it's pros and cons. That would be great! Thanks everyone!