Re: DB stuff
| From: | Colin Viebrock | Date: | Mon, 26 Mar 2001 20:29:16 +0000 |
| Subject: | Re: DB stuff | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-104@lists.php.net to get a copy of this message | ||
> What about this ?
>
> $data = (object) $dbh->fetchRow($result, DB_FETCHMODE_ASSOC);
>
> Adding a new function that does the same thing as this simple line is just
> ridiculous. Am I missing something here ?
That's what I'm doing now. I just thought we might want to formalize that
into DB_common.php
And yes, I know it is trivial to do in your code ... but as PEAR's
DB-abstraction becomes more and more popular (here's hoping!), I'm going to
guess a lot of people are going to ask for this.
- Colin