Home » Database » DB_DataObject » Bug #9076
Fetch a specific row
Details
| Doc Bug #9076 | Fetch a specific row |
|---|---|
| Submitted | 2006-10-18 04:11 UTC |
| From | pas at pas dot net dot au |
| Status | Open |
| Package | DB_DataObject |
| PHP Version | 5.1.6 |
| OS | Debian |
| 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.