php,mysql , and smarty. Confused by a “{” in social-engine platform

kennyv

New Member
hi I was looking at a php code from social engine and they have something like this:\[code\]header("Location:user_event.php?event_id={$event_id}&justadded=1")\[/code\]why id it not \[code\]header("Location:user_event.php?event_id=$event_id&justadded=1")\[/code\]or\[code\]header("Location:user_event.php?event_id=".$event_id."&justadded=1")\[/code\]because the value of $event_id is correct but when the page redirects I go to:\[code\]user_event.php?event_id=&justadded=1\[/code\]now I'm sure I did something to mess the value of {$event_id} but I don't even know what it means. does it have to do with smarty?
 
Back
Top