Req #9076 [NEW]: Fetch a specific row
| From: | pas at pas dot net dot au | Date: | Wed, 18 Oct 2006 04:11:19 +0000 |
| Subject: | Req #9076 [NEW]: Fetch a specific row | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8628@lists.php.net to get a copy of this message | ||
From: pas at pas dot net dot au
Operating system: Debian
Package version:
PHP version: 5.1.6
Package: Documentation
Bug Type: Feature/Change Request
Bug description: Fetch a specific row
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.
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=9076&edit=1
--