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 Quote 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. Quote 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! Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/234388-hyperlink-in-an-echo/#findComment-1204644 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.