mrt003003 Posted April 21, 2011 Share Posted April 21, 2011 Hi there, im trying to echo a hyperlink and parse a url parameter. Its not quite working as iam getting T-string error. If someone with fresh eyes could quickly glance for me that would be ace. <?php if ($row_ship['PlayerName'] == '$_SESSION['MM_Username']'){ echo '<a href="ship_edit.php?recordID='.$row_Ship['ShipID'].'">Edit</a>';} ?> Thank You Link to comment https://forums.phpfreaks.com/topic/234388-hyperlink-in-an-echo/ Share on other sites More sharing options...
requinix Posted April 21, 2011 Share Posted April 21, 2011 '$_SESSION['MM_Username']' One of those pairs of quotes needs to go. Link to comment https://forums.phpfreaks.com/topic/234388-hyperlink-in-an-echo/#findComment-1204630 Share on other sites More sharing options...
mrt003003 Posted April 21, 2011 Author Share Posted April 21, 2011 Thanks thats just the trick! Link to comment https://forums.phpfreaks.com/topic/234388-hyperlink-in-an-echo/#findComment-1204638 Share on other sites More sharing options...
mrt003003 Posted April 21, 2011 Author Share Posted April 21, 2011 thank you Link to comment https://forums.phpfreaks.com/topic/234388-hyperlink-in-an-echo/#findComment-1204644 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.