title: How can I loop through a MySQL result set more than once using the mysql_* functions?
body: <p>For whatever reason, I need to go through a MySQL result set twice. Is there a way to do it?</p>
  <p>I don't want to run the query twice and I don't want to have to rewrite the script so that it stores the rows somewhere and then reuses them later.</p>