a simple
$stuff = mysql_query("SELECT * FROM users");
while($s = mysql_fetch_array($stuff)){
# ....
}
while($r = mysql_fetch_array($stuff)){
# ...
}
The last while() does not work. I have tried run foreach($stuff as $s) but then i get invalid array error.
How can i use the same query twice?
mysql_*functions an learn how to use PDO and prepared statements.