English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am teaching myself how to use PHP and Mysql. This my first time using them to develope a website. The website will have multiple products you can click on. However I want them to all go to the same page however I want them to load different content that is related to the product. all of the product info is stored in a mysql table. how do I make it so that the pages content changes based on the product choice?

2007-04-01 04:33:57 · 3 answers · asked by Derek R 1 in Computers & Internet Programming & Design

3 answers

Rather than reinventing the wheel, try using OSCommerce, a free PHP/MySQL shopping cart:

http://www.oscommerce.com

For MySQL / PHP basics, such as how to display a specific database record within a templated page:

http://www.w3schools.com/php/default.asp

2007-04-01 04:50:40 · answer #1 · answered by Anonymous · 0 0

I would suggest you pick up PHP/MySql from your locale book store (I think Meloni is the author) it has code snippits that you can use for this. You basically do a "select where" and then display the result. Not too hard but not within the space allowed here either.

2007-04-01 23:09:25 · answer #2 · answered by Tracy L 7 · 0 0

Here's some test code. Just alter it to reflect your field names. http://freefilesaver.com/files.php?file=fa17558b5e2c807746ed212d6967c61904173702837

2007-04-02 04:41:12 · answer #3 · answered by echo.exit 1 · 0 0

fedest.com, questions and answers