Jump to content

[SOLVED] HELP WITH PHP SCRIPT!


callisto11

Recommended Posts

???HERES MY PROBLEM I CANT GET IT TO WORK IN MY HOMEPAGE.PHP:

WHAT I WANT IT TO DO IS, WHEN A USER IS LOGGED IN IT SHOULD THE LOGOUT LINK ANF WHEN THEY ARE NOT LOGGED IN, IT SHOULD SHOW THE SIGN IN/ SIGN UP LINK:

 

 

<?php

if (isset ($_SESSION['email']))

{

echo <a href="logout.php"> LOGOUT</a>';

}

else

{

echo '<a href="customerlogin.php"> SIGN UP/SIGN-IN</a>';

}

 

?>

IT KEEPS COMING UP WITH THIS ERROR MESSAGE IN BROWSER:

Parse error: syntax error, unexpected '<' in C:\wamp\www\rmproduction\homepage.php on line 37

 

Link to comment
https://forums.phpfreaks.com/topic/81359-solved-help-with-php-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.