Re: DB Functions in PEAR
| From: | Brian Moon | Date: | Wed, 28 Mar 2001 14:14:05 +0000 |
| Subject: | Re: DB Functions in PEAR | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19@lists.php.net to get a copy of this message | ||
Why not just add a fetchArray method?
Brian Moon
------------------------------------------
dealnews.com, Inc.
Makers of dealnews & dealmac
http://dealnews.com/ | http://dealmac.com/
Look for my presentation at ApacheCon 2001.
"Caching Dynamic Web Content to Increase Dependability and Performance"
http://www.apachecon.com/
----- Original Message -----
From: "Christian Stocker" <chregu@nomad.ch>
To: "Sean Preston" <sean@crypto.co.za>
Cc: <pear-general@lists.php.net>
Sent: Wednesday, March 28, 2001 6:48 AM
Subject: Re: [PEAR] DB Functions in PEAR
On Wed, 28 Mar 2001, Sean Preston wrote:
> Hi
>
> I am new to using PEAR but I like what I have seen so far. What I would
> like to know is, is there a function like the mysql_fetch_array where you
> can reference the result array elements by the column name. I see there
> is the method fetchRow but can you use the column names to reference the
> elements. All the examples I have seen use the number. This method is ok
> but does not make for easy reading of the code.
do
$db->fetchRow(DB_FETCHMODE_ASSOC)
and you get it bei name.
chregu
--
>> NOMAD MEDIA CORPORATION AG
>> christian stocker >> e-mail: chregu@nomad.ch
>> schöneggstrasse 5 >> mobile: +41 76 561 88 60
>> ch-8004 zürich >> office: +41 1 240 23 04
>> web: http://www.nomad.ch >> fax : +41 1 240 23
>> 71
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, e-mail: pear-general-unsubscribe@lists.php.net
For additional commands, e-mail: pear-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net