Hi I'm kind of new to the site and to php. I am trying to make a code which tells hello to a user if logged in or displays the Register/Login form if the user is logged out. Following is the code for it :
<?php if(empty($_SESSION['user']))
{echo " <a href=register.php >Register </a> Or <a href=login.php>Login</a>" ;
}
else{
Hello htmlentities($_SESSION['user']['username'], ENT_QUOTES, 'UTF-8'); you currently have $_SESSION['user']['point']; points !
}. ?>
But it gives me an error :
PHP Error Message
Parse error: syntax error, unexpected T_STRING in /home/a3897717/public_html/index1.php on line 63
And the 63rd line is this one :
Hello htmlentities($_SESSION['user']['username'], ENT_QUOTES, 'UTF-8'); you currently have $_SESSION['user']['point']; points !
Please if anyone can help me, Please help ! Thanks in advance ! This not the duplicate i just want someone to tell me where i am wrong and correct that mistake .
[link]http://teamlegit.site11.com/test.png – DentFuse Sep 27 '15 at 11:58