PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

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.