Prev | Current Page 126 | Next

Emilian Balanescu and Cristian Darie

"Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition"


Figure 4-4. The departments list
The departments list will be the first dynamically generated data in your site (the names
of the departments will be extracted from the database).
In this chapter, you??™ll implement just the departments list part of the web site. After you
understand how this list works, you??™ll be able to quickly implement the other components of
the product catalog in Chapter 5.
In Chapter 2, we discussed the three-tiered architecture that you??™ll use to implement the
web application. The product catalog part of the site is no exception to the rule, and its components
(including the departments list) will be spread over the three logical layers. Figure 4-5
previews what you??™ll create in this chapter at each tier to achieve a functional departments list.
So far, you??™ve only played a bit with the presentation and business tiers in Chapter 3. Now,
when building the catalog, you??™ll finally meet the final tier and work further with the tshirtshop
database (depending on whom you ask, the data store may or may not be considered an integral
part of the three-tiered architecture).
CHAPTER 4 ?–  CREATING THE PRODUCT CATALOG: PART 1 67
Figure 4-5. The components of the departments list
These are the main steps you??™ll take toward having your own dynamically generated department
list. Note that you start with the database and make your way to the presentation tier:
1.


Pages:
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138