05-14-2009, 08:02 PM
|
#1 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
ternary operator
Ok this is really getting me peeved...what am I doing wrong? The syntax looks just fine...but PHP is complaining..
PHP Code:
<? if($_SESSION['user_id']) ? 'Logout' : 'Sign In'; ?>
I keep getting this error:
Parse error: syntax error, unexpected '?'
|
|
|
|