billperrotta Posted March 10, 2010 Report Posted March 10, 2010 Here is the error " Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /homepages/21/d176117763/htdocs/members.php on line 6" members.php pasted below <?php session_start(); if ($_SESSION['loggedin'] == true) { echo 'Welcome, ' $_SESSION['username'] ',to the member\'s only page!'; } else { echo 'You are not allowed to view this page!'; } ?>
BeeDev Posted March 10, 2010 Report Posted March 10, 2010 Needs dots to connect the string: echo 'Welcome, ' . $_SESSION['username'] . ',to the member\'s only page!';
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now