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? Quote 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. Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/113748-solved-creating-a-hyperlink/#findComment-584542 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.