HELP: Product Page Template?
Posted: Sun Oct 17, 2010 10:55 pm
I'm still pretty new to PHP programming and stuff and need some help in the right direction. I've been getting some great help here so far, so thanks a lot in advance again!
Scenario:
Database contains: id, product name, thumbnail url, image url.
The Product page is primarily made of two parts. The product image (which contains description) above, and a row of thumbnails below. The thumbnail locations are derived from the database and that function is now working perfectly. I also have a product upload page that uploads the images to the appropriate folders and writes those 4 values into the database.
The Problem:
When the user clicks on the thumbnails, it should display the product image. I'm not sure if I require a new page for each product? If I do... how do I use templates to create them when the user uploads the new products? Please help. Thanks!
Scenario:
Database contains: id, product name, thumbnail url, image url.
The Product page is primarily made of two parts. The product image (which contains description) above, and a row of thumbnails below. The thumbnail locations are derived from the database and that function is now working perfectly. I also have a product upload page that uploads the images to the appropriate folders and writes those 4 values into the database.
The Problem:
When the user clicks on the thumbnails, it should display the product image. I'm not sure if I require a new page for each product? If I do... how do I use templates to create them when the user uploads the new products? Please help. Thanks!