mcmuney Posted September 9, 2006 Share Posted September 9, 2006 I'm currently using [code]'.$info['scm_mem_id'].'[/code] within an echo statement. But I'd like to change it to [code]'.$info['$id'].'[/code] where id uses a get statement to get R. So, on the url I'll specify what $id should be like... xyz.com?R=abc. However, this is working properly everywhere EXCEPT within the echo statement. Do I need to add some syntax for this to work or is this not acheivable within an echo statement??? Link to comment https://forums.phpfreaks.com/topic/20190-echo-statement/ Share on other sites More sharing options...
radalin Posted September 9, 2006 Share Posted September 9, 2006 try using $info[$id] instead of $info['$id']single quotes disable php variable in strings while double quotes don't Link to comment https://forums.phpfreaks.com/topic/20190-echo-statement/#findComment-88794 Share on other sites More sharing options...
mcmuney Posted September 9, 2006 Author Share Posted September 9, 2006 Bingo...thanks!! Link to comment https://forums.phpfreaks.com/topic/20190-echo-statement/#findComment-88855 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.