Reset a MySQL Recordset with PHP

Error message

Deprecated function: Function create_function() is deprecated in GeSHi->_optimize_regexp_list_tokens_to_string() (line 4698 of /home/digipiph/public_html/sites/all/libraries/geshi/geshi.php).

When you run a recordset through a loop, you will not be able to re-run the recordset further down in the same page. Here is how to reset the recordset so you can use it again on the same page. Just place this code after your loop. Change the "$Recordset" to your recordset's variable.

<?php
  if (mysql_num_rows($Recordset) > 0)  {
    mysql_data_seek($Recordset, 0);
    $row_Recordset = mysql_fetch_assoc($Recordset);
  }
?>