My primary key in my database is id for the products table (as it is with all of my tables.) The id field is auto-increment so that each product has a unique id.
Here is my products table showing 4 different fields (there are a total of 16 fields total in this table)
http://ingramswaterandair.com/db_testing/
As you can see, each product has its own id. if I wanted to view the information for say the product with the id 9, how would I go about doing this?
It is a simple question, but I'm guessing it is a complex answer. Adding index.php?id=9 to the end of the url just refreshes the page.
I would like to create a page that had the products listed on them, then when you click on the link it would show the product.
EDIT: This would make it much easier, as if I had a page with 2747 products on it, I could just make the url "index.php?id=".$row={'id'} to display the correct image.
__________________
Coding is just like a woman. If you don't do something exactly right, it complains.
Last edited by WebTraffic; 11-04-2009 at 03:13 PM..
|