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 - http://pastebin.com/mi7NpxAs

addtocart.php - http://pastebin.com/Q50CeikP

shopend.php  - http://pastebin.com/Yj3KBAKY


Thank you.

Post a Reply

Replies

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

PHP

107,004 followers
About

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

Links
Moderators