Re: DB first time use
| From: | Lukas Smith | Date: | Mon, 26 Apr 2004 09:52:06 +0000 |
| Subject: | Re: DB first time use | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12120@lists.php.net to get a copy of this message | ||
Nunners wrote:
while ($res->fetchInto($agent)) {default is ordered arrays and not associative arrays Have a look here: http://pear.php.net/manual/en/package.database.db.intro-fetch.php regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07echo $agent['name'] . "\n"; //returns Undefined index: Name} ?> As you can see from my comments, it correctly returns the number of rows, however doesn't recognize any indexes. I've installed the latest version 1.6.2.... Am I doing something really silly?