I've been having a bad time try to accomplish this.
<? // get sub total
$gtotal = explode(" ","$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.
I would apperciate any help on this
TIA
Richie TM
TIA
Richie TM