Wrapping up a three-part series today, DevShed has posted part three of their look at combining PHP and MySQL with their final excerpt from the O'Reilly book "Learning PHP and MySQL" (Michele Davis and Jon Phillips).
In this conclusion to a three-part series, you will add PEAR into the mix of what you have already learned.
They show the installation of the needed PEAR classes, translating the previous example from the MySQL functions to use the PEAR class - writing, executing, and returning the results from the database.