views:

73

answers:

3

I going to start to write a new software with PHP, and I need to know the best way to use database. Should I choose a database class such as Adodb, ezSql etc.

What do you think which class is the best one?

+2  A: 

It depends if you need an ORM, or just a database abstraction layer. If you're using Zend Framework then Zend_Db is a great choice. Propel ORM is a great ORM for PHP. Doctrine is another great ORM library. On the other hand if you only need an abstraction layer, consider using the built-in PDO, or libraries like PEAR MDB2.

racetrack
A: 

ADOdb. Fast, easy to implement, well documented (not as in read the code to understand) and does nothing you do not want it to do.

djn
A: 

An alternative to ADOdb:

https://open-mv.googlecode.com/svn/trunk/

Not much documentation tough at the moment.

Jon