Re: Problem with DB.php?
| From: | Tomas V.V.Cox | Date: | Tue, 02 Oct 2001 14:01:29 +0000 |
| Subject: | Re: Problem with DB.php? | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-2120@lists.php.net to get a copy of this message | ||
Eric Carter wrote:
>
> I've been trying to incorporate PEAR into my system and
> I think I may have found some strange bug.
>
> I set DB_FETCHMODE_DEFAULT from 0 to 2.
> However, this little bit of code switches it to 1
> so it cannot use ASSOC by default.
>
To set a default fetchmode use:
$db->setFetchmode(DB_FETCHMODE_ASSOC);
Tomas V.V.Cox