Hi,
I have a table of results from a query. I want to make one of the columns of results as hyperlinks to another page.
I am doing this with the lines....
As you can see, I am calling the result (row 6) and putting it in a table cell. I am also trying to carry the result as a variable with the hyperlink.
If I hold the mouse over the link I get what I'd expect to see...the link and the varaible....
Example
...../ExtDetails.php?id=106
but when I try and collect and display the variable on the ExtDetails.php page it doesn't work.
ExtDetails.php simply consists of...
But nothign appears... Is there something about passing a result as a variable that is stopping this from working??
Or any other ways of doing this?
Any ideas would be much appriciated...
TIA
Tony
I have a table of results from a query. I want to make one of the columns of results as hyperlinks to another page.
I am doing this with the lines....
Code:
print("<td width=\"15%\" bgcolor=\"$color\">");
print("<a href=ExtDetails.php?id=".$row[6].">$row[6]</a></td>");
As you can see, I am calling the result (row 6) and putting it in a table cell. I am also trying to carry the result as a variable with the hyperlink.
If I hold the mouse over the link I get what I'd expect to see...the link and the varaible....
Example
...../ExtDetails.php?id=106
but when I try and collect and display the variable on the ExtDetails.php page it doesn't work.
ExtDetails.php simply consists of...
Code:
<?php
session_start();
$extid=$_POST['id'];
$_SESSION['extid_s']=$extid;
print $extid_s;
print $extid;
?>
But nothign appears... Is there something about passing a result as a variable that is stopping this from working??
Or any other ways of doing this?
Any ideas would be much appriciated...
TIA
Tony