PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » MDB2 » Bug #8750

Little mistake at one sample

Details

Doc Bug #8750Little mistake at one sample
Submitted2006-09-21 02:04 UTC
Fromalbertomarlboro at gmail dot com
Assignedlsmith
StatusClosed
PackageMDB2
PHP Version4.4.1
OSxp pro sp2
Roadmaps(Not assigned)

Comments

[2006-09-21 02:04 UTC] albertomarlboro at gmail dot com

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)