Search This Blog

Friday, December 13, 2013

How to Build Shopping Cart w/ Checkout in PHP

Download Script

I just rewrite the code included in this post to fix minor problem encounter by other PHP programmers who can’t run the shopping cart.
The code is taken from this link: http://www.qualitycodes.com/tutorial.php?articleid=25&title=Tutorial-Building-a-shopping-cart-in-PHP.
As you may have noticed, a lot of programmers are screaming for help on how to fix some bugs on this tutorial. Since I cannot upload the code in the said website, I decided to post it here. Still credit goes to “Richard Clark”.
Changes on the code are following:
  1. Change “<?” to “<?php” to handle php correctly. Some old program still uses “<?” to run PHP code. However, PHP 5 is not stricter and requires you to use php after <?, unless you configure Apache to allow such a shorthand support.
  2. Add echo command instead of equal (=) sign.
Note: If you run the code prior to downloading this code, make sure to clear your browser cache.

5 comments:

  1. hi.. your post was very informative and useful one... want to White Label Website Builder

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. I have read your article. it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it..
    reliable hosting solution

    ReplyDelete
  4. Looking to hire Laravel developer who can take your web development projects to the next level? Look no further than Connect Infosoft Technologies! We are a leading software development company with a dedicated team of experienced Laravel developers ready to bring your ideas to life. Whether you need a custom web application, an e-commerce platform, or a robust content management system, our skilled developers have the expertise to deliver top-notch solutions tailored to your specific requirements. With a strong focus on code quality, performance, and scalability, we ensure that your Laravel project is built to withstand the test of time.

    ReplyDelete