分析错误:语法错误,意外';}';在第26行的C:\xampp\htdocs\eifel\register.php中

分析错误:语法错误,意外';}';在第26行的C:\xampp\htdocs\eifel\register.php中,php,mysql,Php,Mysql,这个代码有什么问题。我一直收到上面标题上的信息!错误是: 分析错误:语法错误,第26行C:\xampp\htdocs\eifel\register.php中出现意外“}” <html> <head> <title>Eiffel IM-Register</title> </head> <body> <?php include "connect.php"; ?> <?php include "function

这个代码有什么问题。我一直收到上面标题上的信息!错误是:

分析错误:语法错误,第26行C:\xampp\htdocs\eifel\register.php中出现意外“}”

<html>
<head>
<title>Eiffel IM-Register</title>
</head>
<body>
<?php include "connect.php"; ?>

<?php include "functions.php"; ?>

<?php include "title_bar.php"; ?>

<div>
<h3>Register for an Eiffel Account</h3>
<p>You don't need to register if you already have a YQPCID!</p>
<form method='post'>
<?php
if(isset($_POST['register'])){
    $username = $_POST['username'];
    $password = $_POST['password'];
    if(empty($username) or empty ($password)){
            $message = "Error: Fields Empty!";
    } 
    else {
            mysql_query("INSERT INTO 'users' VALUES('','$username','$password')");
            $message = "Successfully Registered !"
    }

    echo "<p>$message</p>";


}
?>

<form method= 'post'>
Username : <br/>
<input type='text' name='username' />
<br/><br/>
Password : <br/>
<input type='password' name='password' />
<br/><br/>
<input type='submit' name='register 'value='Register' />
</form>
</div>
</body>
</html>
我真的不知道该怎么办!第26行的所有内容都是一个大括号! 分析错误:语法错误,第26行C:\xampp\htdocs\eifel\register.php中出现意外“}”

<html>
<head>
<title>Eiffel IM-Register</title>
</head>
<body>
<?php include "connect.php"; ?>

<?php include "functions.php"; ?>

<?php include "title_bar.php"; ?>

<div>
<h3>Register for an Eiffel Account</h3>
<p>You don't need to register if you already have a YQPCID!</p>
<form method='post'>
<?php
if(isset($_POST['register'])){
    $username = $_POST['username'];
    $password = $_POST['password'];
    if(empty($username) or empty ($password)){
            $message = "Error: Fields Empty!";
    } 
    else {
            mysql_query("INSERT INTO 'users' VALUES('','$username','$password')");
            $message = "Successfully Registered !"
    }

    echo "<p>$message</p>";


}
?>

<form method= 'post'>
Username : <br/>
<input type='text' name='username' />
<br/><br/>
Password : <br/>
<input type='password' name='password' />
<br/><br/>
<input type='submit' name='register 'value='Register' />
</form>
</div>
</body>
</html>

艾菲尔即时通讯录
注册埃菲尔帐户
如果您已经有YQPCID,则无需注册


你少了一个分号

$message = "Successfully Registered !"
应该是:

$message = "Successfully Registered !";

缺少分号。非常基本的错误。是的。。。就像约翰·康德已经说过的。。。添加
(分号)在此语句末尾:
$message=“成功注册!”使用像Netbeans这样的IDE例如。。。它将向您显示错误。无论如何。。。这是一个非常基本的错误。谢谢你的建议,@tastro。我在用记事本:(看在上帝的份上,不要用记事本——试试上网本。这样你就不会在太简单的问题上被否决了!!!哇。很抱歉回复太晚了。休息一下。