14. Example—E-Commerce

In this, the final chapter of the book, I’ll develop one last Web application, an e-commerce site. Despite the recent economic slump and the devaluation of Web sites, e-commerce still plays a vital role on the Internet and is a prominent use of PHP and MyBSQL.

In this example, I’ll design a site for the purpose of selling prints of art. Unfortunately, to write and explain the entire application would require a book in itself. Furthermore, some aspects of e-commerce—like how you handle the money—are extremely particular to each individual site. Trying to demonstrate such a process would be a waste of space. With these restrictions in mind, the focus in this chapter is on the core functionality of an e-commerce site: populating ...

Get PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition 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.