[thelist] PHP Doubling up

Andrew Maynes andrew at humanbehaviour.co.uk
Wed Aug 14 08:30:01 CDT 2002

not a 100% which code it is! Without it all?  Here is the first bit, I thought
it maybe something else!  Not sure whether it help but do you want to seee the

/* Lets get the total of products and the total cost */
function status($cart) {
	if($cart) {
		foreach ($cart as $item => $value) {
			$number += $cart[$item][qty];
			$total += $total + ($cart[$item][qty] * $cart[$item][unit_price]);
		$total = correct($total);
		$return = "Your order contains <strong>".$number." </strong>";
        $return .= "items costing a total of


Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/02

More information about the thelist mailing list