my code checks if a user is logged if yes displays logout if not displays Login.
" Parse error: syntax error, unexpected ';' in /home/Admin/public_html/index.php on line 45"<-- this the line were the code begins in my script
if i remove ":" I get a new error T if error.
Code: Select all
$template= str_replace ("{_SIDE_URL1_}", session_start(); if(!session_is_registered(username))
{
echo 'href="http://www.mysite.com/Login.php" title="Login">Login';}else
{
echo ' href="http://www.mysite.com/logout.php" title="Logout">Logout</a>'; },$template);