IM TRYING TO GET THIS PART OF MY SCRIPT TO WORK AND IT KEEPS COMING WITH ERRORS AND ASKING FOR THINGS I DONT UNDERSTAND: (HERES THE STATMENT GOES IN homepage.php) <?php if (isset ($_SESSION['email'])) { echo <a href="logout.php"> LOGOUT</a>'; } else if { echo '<a href="customerlogin.php"> SIGN UP/SIGN-IN</a>'; } ?> error message: Parse error: syntax error,unexpected '<'
You are missing a quote sign ' Replace: echo <a href="logout.php"> LOGOUT</a>'; Code (markup): with echo '<a href="logout.php"> LOGOUT</a>'; Code (markup):