[thelist] PHP Doubling up

Jay Blanchard thelist at lists.evolt.org
Wed Aug 14 08:21:01 2002


[snip]
Something is very wrong here!  I have a cart running with a problem, some
extra
code is put in to show how many items have been ordered and the total cost -

Your order contains 2 items costing a total of £1748.00

Problem is that as soon as the cart adds a second item the first items
subtotal
is being doubled any ideas??
[/snip]

Can you show us the code? I can only guess that you may have an array
containing the items ordered and you are inadvertently placing the value of
the first item twice to the array.

Jay