Re: How to change the default db fetch mode ?
| From: | Marius Andreiana | Date: | Sun, 08 Apr 2001 18:05:30 +0000 |
| Subject: | Re: How to change the default db fetch mode ? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-41@lists.php.net to get a copy of this message | ||
> No, you only put DB_FETCHMODE_ASSOC into function fetchRow(), this would
> look so, $result->fetchRow(DB_FETCHMODE_ASSOC);
no, I don't want to use fetchrow(DB_..) every time, only fetchrow()
and the answer, pointed by Jeff : $db->setfetchmode(whatever) right
after connect
thanks!
--
Marius Andreiana