Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

traversing results of DBI recordset

Status
Not open for further replies.

Rovent

Technical User
Nov 16, 2001
61
US
Hullo All -

does anyone know of a function in DBI that can be used to traverse the records returned from a query? here's my problem.

I run my query, and it returns, say, 5 records.

all the examples and searching i've done only allow for forward traversals (fetch, fetchrow, fetcharray) using while loops to plow through the entire table.

I need to be able to print a record, and then go to the previous record, or at the very least, go back to the beginning of the recordset without having to re-execute the query. In a perfect world, it'd kind of replicate the C 'seek' function, like $db->seek(3) to go to the third record. . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top