Jump to content


Photo

echo statement


  • Please log in to reply
2 replies to this topic

#1 mcmuney

mcmuney
  • Members
  • PipPipPip
  • Advanced Member
  • 358 posts

Posted 09 September 2006 - 01:10 AM

I'm currently using
'.$info['scm_mem_id'].'
within an echo statement. But I'd like to change it to
'.$info['$id'].'
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???

#2 radalin

radalin
  • Members
  • PipPipPip
  • Advanced Member
  • 179 posts

Posted 09 September 2006 - 01:14 AM

try using $info[$id] instead of $info['$id']

single quotes disable php variable in strings while double quotes don't
Roy Simkes
Yet Another Parkyeri Developer

#3 mcmuney

mcmuney
  • Members
  • PipPipPip
  • Advanced Member
  • 358 posts

Posted 09 September 2006 - 05:24 AM

Bingo...thanks!!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users