Programming with Pear : A Short, Basic Tutorial.
Programming with Pear : A Short, Basic Tutorial
If you haven't worked with the Pear database abstraction class then you really should. Now I know that everyone says that and we often don't bother — “too hard”, “it's a pain”, etc. It's really not. Here's how I learned how to do it and what I recommend.
- Write a simple PHP app to do nothing more than list the contents of a table using the MySQL native functions.
- Go through and convert it line by line to the Pear equivalents.
Here are the examples …
==> Read Story <==
Note: This is less of a tutorial and more of paired examples. Still at least I found it very useful since it clearly points out the difference between Pear and non-Pear database coding in PHP. And, yes Virgina, the # of lines of code is about the same.