making dynamic table ID rows links to detail pages

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
fariquzeli
Forum Contributor
Posts: 144
Joined: Mon Jun 24, 2002 9:16 am
Location: Chicago
Contact:

making dynamic table ID rows links to detail pages

Post by fariquzeli »

I have a table setup so that it pulls all the data from each table row and displays it on the page. I want to make the userid table row all be hyperlinks to the detailed pages pertaining to the particular record that is clicked on. The problem is, is that the first row is showing up fine, shows up dynamically with each row from my sql db that is different, except that under the ID row that I have some html hyperlinking code around, pulls record id number one for each row, thus linking to the detailed view page for the first record only, here is the code I have around that tablerow:

Code: Select all

<a href="http://www.youngdental.com/surveys/admin/productDetails.php?ID=<?php echo $row_products&#1111;'ID']; ?>"><?php echo $row_products&#1111;'ID']; ?></a>
anyone know how to make it display the ID dynamically, while still linking to its detailed record page dynamically as well?
fariquzeli
Forum Contributor
Posts: 144
Joined: Mon Jun 24, 2002 9:16 am
Location: Chicago
Contact:

Post by fariquzeli »

whoops

so sorry, i've done it again

found my mistake it was 3 lines down.
hehe thanks again.
Post Reply