Jump to content

Archived

This topic is now archived and is closed to further replies.

mcmuney

echo statement

Recommended Posts

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???

Share this post


Link to post
Share on other sites
try using $info[$id] instead of $info['$id']

single quotes disable php variable in strings while double quotes don't

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.