[ Team LiB ] Previous Section Next Section

Q&A

Q1:

Have we covered all the MySQL, SQLite, and PEAR::DB functions?

A1:

By no means have we covered them all. There has really been space to cover only the basics in this chapter. However, if you are comfortable with the concepts we have covered, you will easily understand the remaining functions. You can read about the MySQL functions at http://www.php.net/mysql and find out more about SQLite at http://www.php.net/sqlite. The PEAR::DB documentation is available at http://pear.php.net/manual/en/package.database.php.

Q2:

When should I use the PEAR::DB package in preference to working directly with database functions?

A2:

The PEAR::DB functions should be used if your code is likely be deployed in different contexts from that of development. For example, if you are writing a script that you intend to share with other people, why limit your users to a particular setup? On the other hand, if you are writing a quick local script, working directly with MySQL or SQLite might be easier.


    [ Team LiB ] Previous Section Next Section