Re: [Perchpole] Controlling the detailPages
Hi Perch,
Second site, way to go! :)
There's a few ways to have different products link to different pages. One way would be to use a naming convention for your viewers. So say you have a variable called $record['categoryName'] you could name your detail viewer /
categoryNameDetail.php and then setup a link like this:
<a href="<?php echo $record['categoryName']; ?>Detail.php?<?php echo $record['num']; ?>">View Product</a>
So then if the category was called "widgets" you'd get a link like this: widgetsDetail.php?123
But if your category was called "sprockets" you'd get: sprocketsDetail.php?456
So that's one way, do you think that would work for you? If not we can come up with something else. Let me know if you need more details.
Dave Edis - Senior Developer
interactivetools.com