首頁 >後端開發 >php教程 >用PHP和ACCESS寫聊天室(九)_PHP教學

用PHP和ACCESS寫聊天室(九)_PHP教學

WBOY
WBOY原創
2016-07-21 16:02:321193瀏覽

Enterrm.php3
程式碼如下:
        $ConnID=@odbc_connect("jtfcht","admin","           $result =@odbc_exec($ConnID,"從使用者中選擇密碼、LstTime、RoomID、RefRate,UserID=".$id);
              >                        $sRoomID=$rArr[2]; =(int)$rArr[3];
                                if (($rArr[0 ]==$ps) && ($rArr[1]>=(time()-1800))){
                                                    if ($sNewRoomID!=$ sRoomID){
                              RoomID);
                                🎜>                                 || ($rArr[0]== $sPass)){
                               @odbc_exec($ConnID,"更新使用者設定RoomID= ".$sNewRoomID.",ToID=0,ToName='大家' WHERE UserID=".$id);
                             if ((int)$sRoomID!=1){     if ((int)$sRoomID!=1){                                      $result=@odbc_exec($ ConnID,"從使用者選擇COUNT(UserID) WHERE RoomID=".$sRoomID);
                                         @odbc_fetch_into($result,0,&$rArr)                                    地@odbc_exec($ConnID,"DELETE * FROM Room ID=".$sRoomID);
}
                                               }
                                               其他{
?> ;


輸入房間口令


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