Jump to content

SEssion


ecabrera

Recommended Posts

giving me

 

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/enriquec/public_html/admincenter.php on line 6

 

this is my code

 

<?php require "header.php";?>

<?php

if ($_SESSION['username'])
echo "Welcome, "."$_SESSION['username'].";
else
die("You must be logged in!");


?>
<?php require "footer.php":?>

Link to comment
https://forums.phpfreaks.com/topic/249224-session/
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.