I am trying to populate an array from the values created in a while loop.
ex:
$result = mysql_query("select * from table");
while ($row = mysql_fetch_array($result)) {
$col1 = $row["column1"];
$col2 = $row["column2"];
$finalvalue = ($col1-$col2);
}
now what I want to do is store all the values from $finalvalue into an array so I can add them up find the total and the average of the numbers.