Sunday, 11 August 2013

Error using if statement when concatonating strings and $_server values to variable

Error using if statement when concatonating strings and $_server values to
variable

$stuff = "<tr><td>" . if (isset($_SERVER['HTTP_REFERER']))
$_SERVER['HTTP_REFERER'] . "</td>";
I get this error: Parse error: syntax error, unexpected T_IF in
Sorry I am a newb.

No comments:

Post a Comment