Shopping Cart

0 Roopavathy Baskaran · September 24, 2014
Hello there,

I have a very simple shopping cart program in PHP.

The contents are listed from the database.If I click a "Add to cart " button that particular item is listed in "My Cart".
When I click another item then the new item is displayed instead of getting added to the cart .I want the next item to get added to the previous list.Please help me.

The files are:

index2.php -

addtocart.php -

shopend.php  -

Thank you.

Post a Reply


Oldest  Newest  Rating
0 Phillip Drake · September 25, 2014
In the file index2.php, you forgot to end your echo statement on line 43 with a semicolon.  That could be the reason it isn't printing the list correctly.  I hope this fixes your issue.
  • 1



Server-side, HTML embedded scripting language used to create dynamic Web pages.