Jump to content

Recommended Posts

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/burly/public_html/dev/admin/head.php on line 14

 

 

In

 

<?php 
session_start(); 

if (isset($_SESSION['name'])) {
echo "<html>
<head>
<title>Info</title>
<link type='text/css' rel='stylesheet' href='./css/manage.css' />
</head>

<body style='margin:0px' class='info_body'>
<table border='0' width='100%' height='100%'>
<tr align='center' valign='top'>
	<td style='text-align:left'><b>Extreme Gaming Ladder Control Panel</b> (EGL 1.0) - $_SESSION['name']</a></td>
	<td style='white-space:nowrap; text-align:right; font-weight:bold'>
		<a href="./admin.php" target="frame_main">Main</a>
		|
		<a href="../index.php" target="_blank">Home Page</a>
		|
		<a href="./logout.php" onClick="return confirm('Are you sure you want to log out of the control panel?');" target="_top">Log out</a>
	</td>
</tr>
</table>
</div>
</body>
</html>; 
}else{
echo "
You are not logged in!
";
}

?> 

Link to comment
https://forums.phpfreaks.com/topic/56589-solved-parse-error/
Share on other sites

New Error

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/burly/public_html/dev/admin/head.php on line 6

 

 

New file

<?php 
session_start(); 

if (isset($_SESSION['name'])) {
echo '<html>
<link type='text/css' rel='stylesheet' href='./css/manage.css' />
<body style='margin:0px' class='info_body'>
<table border='0' width='100%' height='100%'>
<tr align='center' valign='top'>
	<td style='text-align:left'><b>Extreme Gaming Ladder Control Panel</b> (EGL 1.0) </a></td>
	<td style='white-space:nowrap; text-align:right; font-weight:bold'>
		<a href='./admin.php' target='frame_main'>Main</a>
		|
		<a href='../index.php' target='_blank'>Home Page</a>
		|
		<a href='./logout.php' onClick='return confirm('Are you sure you want to log out of the control panel?');' target='_top'>Log out</a>
	</td>
</tr>
</table>
</div>
</body>
</html>'; 
}else{
echo '
You are not logged in!
';
}

?> 

Link to comment
https://forums.phpfreaks.com/topic/56589-solved-parse-error/#findComment-279477
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.