CHAPTER 3
Accessing the Database Using PHP
On an e-commerce site, it is essential to display product information next to its image in as much detail as possible. Because there can be a huge number of products, the information is stored in a database. Recall that you already created a products table that contains several products categorized into different areas. This chapter begins by explaining how product information is accessed from the products table and displayed on the screen.
In this chapter, you are going to learn about the following:
- Accessing products and displaying them on screen
- Creating a drop-down menu
- Displaying products in specific ...
Get Make an E-commerce Site in a Weekend: Using PHP 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.