a simple
$stuff = mysql_query(\"SELECT * FROM users\"); while($s = mysql_fetch_array($stuff)){ # .... } while($r = mysql_fetch_array($stuff)){ # ... }
If you user "foreach" instead of "while" you'll not have any problem and no need to mysqli_seek_data() :
//1st loop : foreach($stuff as $row) { echo $row['...']; } ... //2nd loop : foreach($stuff as $row) { echo $row['...']; }