Hey everyone. I just got my server up and running and I programed my database, or so I thought. I tried uploading it and running it but my index.php gives me "syntax error, unexpected $end in index.php on line 127". My code is below. Can anyone help?? Thanks!
<?
/**
* index.php
*
* This is the main layout of the page.
*/
include("includes/session.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>
<title>Online Game</title>
<!--
Web Site: www.onlinegame.com
Description:
-->
<link rel="stylesheet" type="text/css" href="css/layout.css" />
<link rel="stylesheet" type="text/css" href="css/presentation.css" />
</head>
<body>
<!-- header div -->
<div id="hdr">Header Content Here</div>
<!-- center column -->
<div id="c-block">
<div id="c-col">
<h3 align="center"> </h3>
<!---<div align="center" style="color:red;">Ver 2.3</div>--->
</div>
<!-- end of center column -->
</div>
<!-- end c-block -->
<div id="ftr" align="center">Footer Div - Copyright Information
</div>
<!-- left column -->
<div id="lh-col"><br />
<h4 align="left">Left Column</h4>
<?
if( $session->logged_in )
{
echo "<h1>Logged In</h1>";
echo "Welcome <b>$session->username</b>, you are logged in. <br><br>"
."[<a href=\"userinfo.php?user=$session->username\">My Account</a>]<br>"
."[<a href=\"useredit.php\">Edit Account</a>] <br>";
if( $session->isAdmin() )
{
echo "[<a href=\"admin/admin.php\">Admin Center</a>]<br>";
}
echo "<br><br><br>";
echo "[<a href=\"process.php\">Logout</a>]";
}
else
{
?>
<!--- User not logged in, show login form. If errors occur, they will be displayed --->
<h1>Login</h1>
<?
if( $form->num_errors > 0 )
{
echo "Invalid username/password combination. Please try again";
//echo "<font size=\"2\" color=\"#ff0000\">".$form->num_errors." error(s) found</font>"
}
?>
<form action="process.php" method="POST">
<table align="left" border="0" cellspacing="0" cellpadding="3">
<tr><td>Username:</td><td>
<input type="text" name="username" maxlength="30" value="<? echo $form->value("username"); ?>"></td><td>
<? echo $form->error("username"); ?></td></tr>
<tr><td>Password:</td><td>
<input type="password" name="password" maxlength="30" value="<? echo $form->value("password"); ?>"></td><td>
<? echo $form->error("password"); ?></td></tr>
<tr><td colspan="2" align="left">
<input type="checkbox" name="remember" <? if( $form->value("remember") != "" ) ?> >
{
<?
echo "checked";
?>
}
<font size="2">Remember me next time </font>
<input type="hidden" name="sublogin" value="1">
<input type="submit" value="Login"></td></tr>
<!--- <tr><td colspan="2" align="left"><br><font size="2">[<a href="forgotpass.php">Forgot Password?</a>]</font></td><td align="right"></td></tr> --->
<tr><td colspan="2" align="left"><br>Not registered? <a href="register.php">Sign-Up!</a></td></tr>
</table>
</form>
}
</div>
<!-- end of left column -->
<!-- right column -->
<div id="rh-col"><br />
<h4 align="center">Right Column</h4>
<p align="center">More links?<br />
Advertisements</p>
</div>
<!-- end of right column -->
</body>
</html>