passing while() array to a variable out of while() in php

Pizzatime

New Member
suppose i have a query\[code\]$array = array();$sql = mysql_query("SELECT * FROM table");while($row=mysql_fetch_array($sql)){ $data = http://stackoverflow.com/questions/3647054/$row['data'];}$array = $data;\[/code\]Now how can i get that each $data values out of while in an array() i.e $array
 
Back
Top