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 » DB_DataObject » Bug #9076

Fetch a specific row

Details

Doc Bug #9076Fetch a specific row
Submitted2006-10-18 04:11 UTC
Frompas at pas dot net dot au
StatusOpen
PackageDB_DataObject
PHP Version5.1.6
OSDebian
Roadmaps(Not assigned)

Comments

[2006-10-18 04:11 UTC] pas at pas dot net dot au

Description:
------------
How about changing the following in DataObject.php

function fetch($rownum = NULL)
...
$array = $result->fetchRow(DB_DATAOBJECT_FETCHMODE_ASSOC, $rownum);

That way you could get any row in the result instead of only the next row. It is already supported by the DB class, so it is a very simple and minor change.