Still can't get all the values add up only print the last value.
<? // get sub total
$gtotal = explode("\n","$total"); // $total being a variable containing a list of values
}
reset ($gtotal);
while (list(, $s_total) = each ($gtotal)) {
$sum += $s_total;
}
echo $sum;
?>
// so $total has
// 53
// 301
// only echoing 301
// need to add 53 and 301 and what ever
//values that variable holds
TIA
Richie TM