Jump to content

not sure why this code isn't working...


desjardins2010

Recommended Posts

<?php
session_start();

if($_SESSION['username'])
	echo "Welcome, ".$_SESSION['username']."!<BR>";
	echo "<a href=\"logout.php\">LOGOUT</a>";

else
die("Your Have To Be Logged In To View This Page");

?>

 

anyone see anything wrong with this i'm getting a parse error on line  8 that is the else statment

Link to comment
https://forums.phpfreaks.com/topic/221059-not-sure-why-this-code-isnt-working/
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.