Hi,
I have a piece of code that queries a list of categories for a shopping cart. In the code, I have the link setup something like this:
<a href="product-detail.php?ProductID=1000>category name</a>
The problem is that no matter what category name:
Furniture
Arts / Crafts etc, it will always display that same product '1000', what I would like to do is be able to point to a different item, within in the specific category if possible so the result would be something like this:
<a href="product-detail.php?ProductID=1000>Furniture</a>
<a href="product-detail.php?ProductID=2000>Arts / Crafts</a>
<a href="product-detail.php?ProductID=3000>Coffee</a>
is this possible?
here is query I am using:
$query = "SELECT ProductCategory,ProductSubCategory
FROM $table_pro
WHERE ProductCategory = '$ProductCategory'
Group BY ProductSubCategory";
Any suggestions appreciated,
Thanks,
Brett