Topic: $cur_user['username']
hello, i have this script:
<?php
if($cookie['is_guest'])
{
print("Welcome to our forums! You have to register first, or please login.");
}
else
{
print("hello, $cur_user['username'], welcome to our forums!");
}
?>
I placed this code in index.php. But it doesn't work. It gives this parse error:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/basalph/public_html/forum/index.php on line 49
Why is this?