Re: SQL Functions
| From: | John W. Holmes | Date: | Tue, 10 Aug 2004 18:37:32 +0000 |
| Subject: | Re: SQL Functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193352@lists.php.net to get a copy of this message | ||
From: "Dan Joseph" <djoseph@nocheck.com>
> > Of course, this begs the question of why you're re-implementing what
> > has been done so many times in the past.
> >
> > http://pear.php.net/package/DB
> > http://pear.php.net/package/MDB
> > http://pear.php.net/package/MDB2
> > http://adodb.sourceforge.net/
> > http://www.phpclasses.org/browse/package/20.html
>
> I'm building a class for use with our PHP applications. Packages
> like what you've linked me to are nice, but we need a little flexibility
> here, so we're writing a few methods of our own.
So have your class extend one of these and only rewrite what they do not
implement. That's one of the big ideas behind OO programming.
The procedure your original question was about is already implemented in
ADOdb, for example:
http://phplens.com/lens/adodb/docs-adodb.htm#getall
---John Holmes...