Unexpected $end error?
| From: | Vincent Bouret | Date: | Sun, 05 Jan 2003 22:56:58 +0000 |
| Subject: | Unexpected $end error? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-130341@lists.php.net to get a copy of this message | ||
Can someone tell me why I keep getting that error:
Parse error: parse error, unexpected $end in D:\Program Files\Apache
Group\Apache2\htdocs\proxy\acc_new.php on line 62
line 62 refers to </html>
Thanks for your help
Vincent
Here is the content of acc_new.php
<?php
//MUST declare $page_class to specify the level of authentication required
$page_class = "account";
include('auth.php');
include('mysql.php');
?>
<html>
<head>
<title>Account Management Tools - Add a new account</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="proxy.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1>Accounts Management Tools</h1>
<h2>Add a new account</h2>
<form name="frmAdd" method="post" action="acc_new.php">
<p><strong>Username:</strong>
<input type="text" name="textfield">
</p>
<p><strong>Password:</strong>
<input name="txtPassword" type="password" id="txtPassword"
value=""
size="25" maxlength="20">
<em>Must contain between 4 and 20 characters.</em></p>
<p><strong>Firstname:</strong>
<input name="txtFirstname" type="text" id="txtFirstname"
value=""
size="25" maxlength="50">
</p>
<p><strong>Lastname:</strong>
<input name="txtLastname" type="text" id="txtLastname"
value=""
size="25" maxlength="50">
</p>
<p><strong>Email address:</strong>
<input name="txtEmail" type="text" id="txtEmail"
value="" size="50"
maxlength="80">
</p>
<p><strong>Usergroup:</strong>
<select name="selUserGroup">
<?php
//Fetch list of groups
$result = mysql_query("SELECT id, name FROM tblUserGroups", $db);
$row = mysql_fetch_array($result);
if ($row = mysql_fetch_array($result)) {
do {
?>
<option value="<?php echo $row['id']; ?>"><?php echo
$row['name'];
?></option>
<?php
} while($row = mysql_fetch_array($result));
?>
</select>
</p>
<p align="center">
<input name="btnAdd" type="submit" id="btnUpdate"
value="Add new
account">
</p>
</form>
<p><a href="man_accounts.php">Back to Account Management
Tools</a></p>
</body>
</html>
and here is the content of auth.php
<?php
//some code working with every other pages
?>
and mysql.php
<?php
//mysql.php Include file initializing connection to db
$db = mysql_connect(dbinfo goes here);
mysql_select_db("proxy_db", $db);
?>