Hi there,
Sorry, I'm just having difficulty applying it. The problem is I have to use the database table as is without adding any columns to it and it only contains a column for name, stock and price. I have to also populate the shopping cart from two separate product pages each with a few products on it which are posted to the cartaction page via a submit button. Because the code is using intval I will always get an invalid item as my column is a varchar product name rather than an integer. That's why I'm having trouble getting my head around how to get each product to appear as a new variable array on the shopping cart page without replacing the item that's in there.