I am new to PHP and need help with a website I'm creating. Using a MySQL database I have created a table storing all of my images, descriptions, links etc. I need the product images to display on the PHP page (which I've already figured out) and be links to their individual product pages (help!) which are also dynamic. How do I code that so when the product is selected a new PHP page loads with that specific product, description, etc?
brose
0
Newbie Poster
Recommended Answers
Jump to Post0) Preperation:
Give all items a unique ID or name.
1) Index-Page
Ouput all items and link then to the product-page with their IDecho "<a href=\"product.php?item=".$row["ID"]."\">".$row["Title"]."</a>";
2) Programme the product-page:
Output more detailed information about the seleted productmysql_query("SELECT * FROM `products` WHERE …
All 4 Replies
sDJh
39
Posting Whiz in Training
brose
0
Newbie Poster
brose
0
Newbie Poster
sDJh
39
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.