PEAR is archived and read-only

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

Home » Database » DB » Bug #1049

reset result row-pointer

Details

Request #1049reset result row-pointer
Submitted2004-03-22 04:37 UTC
Fromwebmaster at learningmedia dot co dot nz
StatusWont fix
PackageDB
PHP Version4.3.2
OSMac OS X (10.3)
Roadmaps(Not assigned)

Comments

[2004-03-22 04:37 UTC] webmaster at learningmedia dot co dot nz

Description:
------------
I would like to request the addition of a method to the DB_Result class that would reset the result row-pointer. This would allow the reuse of a $DB_Result.

Other people would seem to support this request:
http://forums.devshed.com/archive/t-50614

[Other row-pointer manipulations (eg. next, prev., last, etc.) may also be helpful.]

Regards
James Robertson

[2005-09-20 16:21 UTC] php at adaniels dot nl

This also ins't a good enough solution, when you have a general purpose function looping a result. Fetching row zero before calling the function, will make it start with the second row.

So I would still love to see a reset result pointer mehod.

(Please reply if I havn't made myself clear)