5. E-commerce Techniques

In this chapter, a Web site explicitly for selling products will be developed. The information you learn will help you to understand the mechanics of an online store while giving you some viable code. The example will focus on the PHP coding itself, along with the database requirements, and it will lead you to the point of implementing a payment system. (Due to the vast number of online payment systems, attempting to demonstrate any one would be of limited use.)

This e-store will sell the ubiquitous widget. Unlike many similar examples, these will be some fancy widgets, organized under various categories and available in different sizes and colors. The specifics of these products are irrelevant; all I’m really trying ...

Get PHP 5 Advanced: Visual QuickPro Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.