Hi list,

How can I traverse the recordset moret than once?

For example, the recordset $sth is returned from executing the sql statement.
The following statement is writen with the "for" loop for retrieving each record from the recordset.


$aref = $sth->fetchrow_arrayref

However when the "for" loop is finished, the pointer of the recordset is point to the end of the recordset. How can I revise the point to the beginning of the recordset ($sth)?

Thanks
Sam.


-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to