ok I fetch data from a database:
while ($row = mysql_fetch_array($result)) { print $row["id"]; }
now I ned the "id" value again below the "while". how can I make it global or that I can access that data in the next "while"? thanks!
you can collect ids in array
while ($row = mysql_fetch_array($result)){ $ids[] = $row["id"]; }
then use this array wherever you want
if you really need it 🙂