hansman Posted July 8, 2008 Share Posted July 8, 2008 hello here is my code echo "<a href=\"pest.php?" . $row['id'] . "\">$row['Name']</a>"; i wish to create a link to pest.php?idnumerhere and display the name, a column within the id number any suggestions? Link to comment https://forums.phpfreaks.com/topic/113748-solved-creating-a-hyperlink/ Share on other sites More sharing options...
magebash Posted July 8, 2008 Share Posted July 8, 2008 Maybe: echo "<a href='pest.php?$row[id]'>$row['Name']</a>"; But I am not sure what you are asking. Link to comment https://forums.phpfreaks.com/topic/113748-solved-creating-a-hyperlink/#findComment-584539 Share on other sites More sharing options...
craygo Posted July 8, 2008 Share Posted July 8, 2008 you have to give it a name echo "<a href=\"pest.php?id=".$row['id']."\" />".$row['Name']."</a>\n"; Then on the processing page $id = $_GET['id']; Then run your query Ray Link to comment https://forums.phpfreaks.com/topic/113748-solved-creating-a-hyperlink/#findComment-584542 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.