PEAR DB examples?
| From: | Andrei Zmievski | Date: | Thu, 07 Sep 2000 20:12:09 +0000 |
| Subject: | PEAR DB examples? | ||
| Groups: | php.pear | ||
| Request: | Send a blank email to php-pear+get-234@lists.php.net to get a copy of this message | ||
Has anyone written a simple application that uses PEAR DB? If yes, I was
wondering if I could take a look at how you manage the DB calls. I've
been thinking about it today and, personally, I'd probably use a simple
wrapper class that calls DB::connect() in its constructor. But then
there are all sorts of other issues, like letting wrapper class check
for errors via DB:isError() or leaving those checks in the main code...
So, anyone willing to share implementation examples?
-Andrei
* Gun manufacturers don't make bad products, bad parents do. *