O'Reilly logo

Sams Teach Yourself PHP, MySQL® and Apache All in One, Second Edition by Julie C. Meloni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 22. Creating a Shopping Cart Mechanism

In this hands-on chapter, you will integrate a shopping cart mechanism and checkout procedure into the basic storefront display that you created in the previous chapter. You will be shown the methods for creating the relevant database tables as well as the scripts for adding and deleting cart items. Once again, the examples used in this chapter represent one of an infinite number of possibilities to complete these tasks, and are meant as working examples rather than the definitive guide for building an online store.

In this chapter, you will learn

  • How to create relational tables for the shopping cart and checkout portion of an online store

  • How to create the scripts to add and remove cart items

  • Some methods ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required