首頁  >  文章  >  後端開發  >  用PHP和ACCESS寫聊天室(五)_PHP教程

用PHP和ACCESS寫聊天室(五)_PHP教程

WBOY
WBOY原創
2016-07-21 16:01:511157瀏覽

member.php3 :
function delquot($sStr){
    $s=str_replace(chr(124),"",$sStr);
39),"",$s);
    $s=str_replace(chr(34),"",$s);
    返回$s;
}

@odbc_connect("jtfcht","admin","");
    if ($ConnID){
        @odbc_exec($ConnID,"更新使用者設定RoomID0,To  @odbc_exec($ConnID,"更新使用者設定RoomID0,ToID'', Secret=False,FirstTime=False,LstTime=0,LastLoc=0 WHERE (NOT (UserID=1)) AND LstTime      "從用戶中選擇密碼、LstTime、RoomID、RefRate、ToID WHERE UserID=".$id);
        if (@odbc_fetch_into($result,0,&$rArr)){
            $sRoomID=$rArr [2];
            $sRefRate=(int)$rArr[3];
          if ($sRefRate            if (($id=="1" && $ps=="superldz") || (($rArr[0]==$ps) && ($rArr[1]>=(time()) -1800)) )){
                ”($ptp){
                          $bYes=true;
                             $sRoom=htmlspecialchars(trim(delquot($ sRoom)));
                        if ($sPass1!=$sPass                $bYes=false;
                                     }
           ($sRoom=="大廳"){
                                       $sErr="你煩死了,都告訴你不能叫「大廳」了";
                         
                        if ($bYes){
     $sPass1=delquot($sPass1);
                          ', ".$id.", '".$sPass1."')");
                       變更未成功,因為它們會在索引、主鍵或關係中建立重複值。 $bYes=false;
                            "這個房間已經有了";
                                其他{
                              ;
                                                           $sNewRoomID=$rArr[0];          其他
                                                  @odbc_exec ($ConnID,"更新使用者設定RoomID = ".$sNewRoomID.",ToID=0,ToName='' WHERE UserID=".$id);
            oomID!=1){
                                                                                               if ($rArr[0]==0) @odbc_exec($ConnID,"DELETE * FROM Room where RoomID=".$sRoomID);
             
                                           }
                         if (!$bYes){
?>


新建房間錯誤


陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn