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?
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?
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.
An alternative to ADOdb:
https://open-mv.googlecode.com/svn/trunk/
Not much documentation tough at the moment.