<?php
include_once("top.php");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head><body>
<center>
<div class="register">
<div class="register1">
<div class="a9">
<div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用户录入&nbsp;板块</div></div></div><br>
<?php
$usernc=trim($_POST[usernc]);if($usernc==""){
echo "<script>window.location.href='register.php';</script>";
exit;
} $sql=mysql_query("select usernc from tb_user where usernc='".$usernc."'",$conn);
 $info=mysql_fetch_array($sql);
 if($info1=false){
 ?>
 <div align="center"><font color="#FF0000">对不起,您的用户名已被其他网友所占用,请重新选择!</font></div><?php }else{ ?>
</div>
</body>
</html><?php
include_once("top.php");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head><body>
<center>
<div class="register">
<div class="register1">
<div class="a9">
<div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用户录入&nbsp;板块</div></div></div><br>
<?php
$usernc=trim($_POST[usernc]);if($usernc==""){
echo "<script>window.location.href='register.php';</script>";
exit;
} $sql=mysql_query("select usernc from tb_user where usernc='".$usernc."'",$conn);
 $info=mysql_fetch_array($sql);
 if($info1=false){
 ?>
 <div align="center"><font color="#FF0000">对不起,您的用户名已被其他网友所占用,请重新选择!</font></div><?php }else{ ?>
</div>
</body>
</html>Parse error: syntax error, unexpected $end in D:\phpwork\luntan\getuserinfo.php on line 34
什么意思呀

解决方案 »

  1.   

    估计是某处标签没闭合(PHP的)
      

  2.   

    <!-- 这里else的后一个}那里去了 -->
    <?php }else{ ?>
    </div>
    </body>
    </html>
      

  3.   

    34行<?php
    include_once("top.php");
    ?>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <link rel="stylesheet" type="text/css" href="css/style.css">
    </head><body>
    <center>
    <div class="register">
    <div class="register1">
    <div class="a9">
    <div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用户录入&nbsp;板块</div></div></div><br>
    <?php
    $usernc=trim($_POST[usernc]);if($usernc==""){
    echo "<script>window.location.href='register.php';</script>";
    exit;
    } $sql=mysql_query("select usernc from tb_user where usernc='".$usernc."'",$conn);
     $info=mysql_fetch_array($sql);
     if($info1=false){
    ?>
    <div align="center"><font color="#FF0000">对不起,您的用户名已被其他网友所占用,请重新选择!</font></div><?php }else{ ?>
    </div>
    </body>
    </html><?php
    include_once("top.php");
    ?>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <link rel="stylesheet" type="text/css" href="css/style.css">
    </head><body>
    <center>
    <div class="register">
    <div class="register1">
    <div class="a9">
    <div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用户录入&nbsp;板块</div></div></div><br>
    <?php
    $usernc=trim($_POST[usernc]);if($usernc==""){
    echo "<script>window.location.href='register.php';</script>";
    exit;
    } $sql=mysql_query("select usernc from tb_user where usernc='".$usernc."'",$conn);
     $info=mysql_fetch_array($sql);
     if($info1=false){
    ?>
    <div align="center"><font color="#FF0000">对不起,您的用户名已被其他网友所占用,请重新选择!</font></div><?php }else{ ?>
    </div>
    </body>
    </html>Parse error: syntax error, unexpected $end in D:\phpwork\luntan\getuserinfo.php on line 34
      

  4.   

    php标签问题,自己慢慢找找吧