creating links within table results

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Guest
Does anyone have any pointers on how to include links within table results that point to additional information also pulled from the same db table?

I have some extensive info that I want to query. The intial results are going to be displayed in a simple wire frame html table layout. I would like each row to include a link that will take the reader to a more detailed version of the data for that particular row, and that more detailed data will of course come from the same db table. My problem is I don't know how to setup the code to create such link.

Any pointers or suggestions would be most helpful!!
 
You want something like this (read it very carefully):
select concat('<a href=\'linkpage.php?value=',value,'\'>',value,'</a>') from table

This would return each row with the value as a hyperlink (if outputted directly).
 
Back
Top