I have the following code in my page:
<?
if ($logged_in){
echo "<b>Hi </b>";
}
?>
<? echo $fMember[ login ] ?>
This works how you see it above.
I need to make the second part be included in the first part, but when I do that, I get this error:
Parse error: parse error, expecting T_STRING' orT_VARIABLE' or `T_NUM_STRING'
The code looks like this:
<?
if ($logged_in){
echo "<b>Hi </b> $fMember[ login ]";
}
?>
The code above won't work. It seems that when you remove the PHP signs and echo code from $fMember[ login ], it no longer works.
The code below wont work also:
<?
if ($logged_in){
echo "<b>Hi </b> <? echo $fMember[ login ] ?>";
}
?>
What can I do?
Thanks