Doc #8750 [NEW]: Little mistake at one sample
| From: | albertomarlboro at gmail dot com | Date: | Thu, 21 Sep 2006 02:04:28 +0000 |
| Subject: | Doc #8750 [NEW]: Little mistake at one sample | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8475@lists.php.net to get a copy of this message | ||
From: albertomarlboro at gmail dot com
Operating system: xp pro sp2
Package version:
PHP version: 4.4.1
Package: Documentation
Bug Type: Documentation Problem
Bug description: Little mistake at one sample
Description:
------------
The sample 33-5 looks wrong.
fetchRow without format wont return row thru name :
;;;;;;; Wrong ;;;;;;;;;;;;;;;
while ($row = $res->fetchRow()) {
echo $row['name'] . ', ' . $row['address'] . "\n";
;;;;;;; Fixed ;;;;;;;;;;;;;;;
fetchRow(MDB2_FETCHMODE_ASSOC)
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=8750&edit=1
--