
Originally Posted by
dibby44
Thanks for your prompt reply. Sorry for the confusion - the "Group" is a table column header and these are mutual-interest groups of people, as in Gardens Group, Social Group, Play Reading Group, etc. I need to put a row-selector in each row [perhaps even using the cell with Group name] that will open the web-page for that row. So click on the selector for the Gardens Group row and the URL ../../Gardens.html would open.
How do I add a selector to each row in php and how can I have the appropriate page open?
Would the code be in a separate page or in the same php page?
Regards
Dave B.
You'll need to pull up the area that produces the rows based on your recordset. You'll see that the result is returned to an array and there will be a foreach loop to show all the records. Within that loop you'll want to find a nice cozy place to put something along the lines of this :
PHP Code:
echo '<a href = "../../' . $array['Group'] . '.html">' . $array['Group'] . '</a>';
While looping through it will use the current rows "Group" to populate your line.
Bookmarks