Hi all,
If i have the following:
foreach($_SESSION['cart'][$i]['1'] as $value) {
$sql_2 = mysql_query("select spec_price from specs where spec_id=$value");
while ($row = mysql_fetch_array($sql_2)){
$spec_price = $row['spec_price'];
}
}
how do i add up all the values from the while loop?
Do i have to turn the resluts into a number, at the moment they are from a column in the mySQL database that has VARCHAR assigned to it.
Cheers,
macca_25