sahkan_dengran
10-13-2012, 08:45 AM
hii i can't resolve that problem it is write to me :
Parse error: syntax error, unexpected '}' in /home/****/public_html/index.php on line 55
i do ***** because it is the username and i dont wanna to be hacked.
the code is:
<?php
include 'config.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="favicon.ico" >
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Text header</title>
<style type="text/css">
.style1 {
text-align: center;
}
.menu {
background-image:url('bar.png')
}
.style2 {
background-image: url('bar.png');
text-align: center;
margin-top: 0px;
}
.style4 {
text-decoration: none;
}
.style5 {
color: #FFFFFF;
}
.style6 {
text-align: center;
font-family: "Franklin Gothic Medium";
font-size: large;
text-decoration: underline;
}
.style7 {
color: #FFFFFF;
font-family: "Franklin Gothic Medium";
}
.style9 {
text-align: center;
font-family: "Franklin Gothic Medium";
font-size: small;
}
</style>
</head>
<body>
<p class="style1">
<div class="style1">
<img src="header.png" width="496" height="138" />
</div>
<center>
<div class="style2" style="height: 63px; width: 580px">
<html><br /><strong><span class="style5"><a href="index.php" class="style4"><span class="style7">Home</span></a></span><span class="style7"> |Games | <?php ($_COOKIE['uname']) ?> 's Profile | Send Email/Chat |
<a href="logout.php" class="style4"><span class="style5">Logout</span></a> |<a href="contact.php" class="style4"><span class="style5">Contact Us</span></a></span></strong></html><?php } else { ?> <html> <div class="style2" style="height: 63px; width: 580px"><span class="style5"><a href="index.php" class="style4"><span class="style7">Home</span></a></span><span class="style7"> |<a href="register.php" class="style4"><span class="style5">Register</span></a> | <a href="login.php" class="style4"><span class="style5">Login</span></a> | <a href="contact.php" class="style4"><span class="style5">Contact Us</span></a></span></strong></div></html>
<?php
}
?>
</center>
<p class="style6"><strong>Big TEXT</strong></p>
<p class="style9">TxtxtxtxtxtxtxtxSomethingblablablabla</p>
<p class="style9">txtx txtxtxtxtxt:</p>
<p class="style9">text text text text text text text</p>
<p class="style9">something something something</p>
<p class="style9">blalbalbalbalba</p>
</body>
</html>
I hope you can help me :)
thanks!
Parse error: syntax error, unexpected '}' in /home/****/public_html/index.php on line 55
i do ***** because it is the username and i dont wanna to be hacked.
the code is:
<?php
include 'config.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="favicon.ico" >
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Text header</title>
<style type="text/css">
.style1 {
text-align: center;
}
.menu {
background-image:url('bar.png')
}
.style2 {
background-image: url('bar.png');
text-align: center;
margin-top: 0px;
}
.style4 {
text-decoration: none;
}
.style5 {
color: #FFFFFF;
}
.style6 {
text-align: center;
font-family: "Franklin Gothic Medium";
font-size: large;
text-decoration: underline;
}
.style7 {
color: #FFFFFF;
font-family: "Franklin Gothic Medium";
}
.style9 {
text-align: center;
font-family: "Franklin Gothic Medium";
font-size: small;
}
</style>
</head>
<body>
<p class="style1">
<div class="style1">
<img src="header.png" width="496" height="138" />
</div>
<center>
<div class="style2" style="height: 63px; width: 580px">
<html><br /><strong><span class="style5"><a href="index.php" class="style4"><span class="style7">Home</span></a></span><span class="style7"> |Games | <?php ($_COOKIE['uname']) ?> 's Profile | Send Email/Chat |
<a href="logout.php" class="style4"><span class="style5">Logout</span></a> |<a href="contact.php" class="style4"><span class="style5">Contact Us</span></a></span></strong></html><?php } else { ?> <html> <div class="style2" style="height: 63px; width: 580px"><span class="style5"><a href="index.php" class="style4"><span class="style7">Home</span></a></span><span class="style7"> |<a href="register.php" class="style4"><span class="style5">Register</span></a> | <a href="login.php" class="style4"><span class="style5">Login</span></a> | <a href="contact.php" class="style4"><span class="style5">Contact Us</span></a></span></strong></div></html>
<?php
}
?>
</center>
<p class="style6"><strong>Big TEXT</strong></p>
<p class="style9">TxtxtxtxtxtxtxtxSomethingblablablabla</p>
<p class="style9">txtx txtxtxtxtxt:</p>
<p class="style9">text text text text text text text</p>
<p class="style9">something something something</p>
<p class="style9">blalbalbalbalba</p>
</body>
</html>
I hope you can help me :)
thanks!