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??? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
mcmuney Posted September 9, 2006 Author Share Posted September 9, 2006 Bingo...thanks!! Quote Link to comment 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.