I'm developping a Moodle 2.9.1 pluggin and I need to loop through a small recordset twice on the same page.
I'm using
$rs = $DB->get_recordset_sql($sql, array());
to get the data from mysql.
I would need a function like mysql data_seek(0)
to work on the recordset again but I cannot find anything related to this in the moodle API or forums.