Re: DB Functions in PEAR
| From: | Christian Stocker | Date: | Wed, 28 Mar 2001 12:48:00 +0000 |
| Subject: | Re: DB Functions in PEAR | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18@lists.php.net to get a copy of this message | ||
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