unexpected $end in ....一般表示{}不匹配。
看了你的源程序,好像果真如此。 在56行是不是少了一个  <?php

解决方案 »

  1.   

    好象对了(检测无错)!
    但为什么连不上index.php
    <html>
    <head>
    <title> 聊天室欢迎您 </title>
    <meta http-equiv="content-type" content="text/html;charset=gb2312">
    </head><?php
    require"lib.php";
    $db=db_connect();$user=name_decrypt($cryptname);
    if($user!="")
    {
    $str=$user."走进聊天室";
    $date=date("YmdHis");
    $sql="insert into chatcontent (namefrom,nameto,cont,time,color,is_secret) values ('$user','[系统消息]','$str',$date,'#0000ff','n')";  
    $res=mysql_query($sql,$db);

    }$title=init_title();
    db_close();
    ?><frameset rows="406,120" cols="*" border="0">
       <frameset cols="606,174" rows="*" border="0">
         <frameset rows="45,355"  border="0">
           <frameset src="title.php?title=<?php echo $title;?>" name="title" scrolling="yes">
    <frameset rows="355,0" border="0">
           <frameset src="main.php?cryptname=<?php echo $cryptname;?>" name="main" scrolling="yes">
             <frameset src="get.php?cryptname=<?php echo $cryptname;?>" name="get" scrolling="no">
             </frameset>
                </frameset>
                  <frameset src="list.php?cryptname=<?php echo $cryptname;?>" name="list" scrolling="yes">
             </frameset>
    <frameset src="send.php?cryptname=<?php echo $cryptname;?>" name="send" scrolling="NO" marginheight="0">
                 </frameset>
     <noframes>
    <body bgcolor="#FFFFFF">
    </body></noframes>
    </html>
      

  2.   

    什么连不上index.php?哪里来的index.php?