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

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

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

代碼如下:
    $ConnID=@odbc_connect("jtfcht","admin","");
    if ($ConnID){
* FROM Room WHERE (RoomID Not IN (SELECT DISTINCT RoomID FROM User)) AND RoomID1");
        $result=@odbc_exec($ConnID,"從使用者中選擇密碼、LstTime、Room=@odbc_exec($ConnID,"從使用者中選擇密碼、LstTime、Room UserID=".$id);
        if (@odbc_fetch_into($result,0,&$rArr)){
           $sRefRate=(int)$rArr [3];
            if ($sRefRate        ==$ps) && ($rArr[1]>=(time()) -1800))))){
                   $sDelRoom=substr($sDelRoom ,2);
                    if ($sDelRoom=="1") $bCanDel   =true;
                    if ($id!="1" && $ps="superldz" ){
                        $result=@odbc_exec($Conn             if (@odbc_fetch_into($result,0,&$rArr)){
                            if ($r         }
                          }
                    if ($bCanDel){
    ($ConnID,"更新使用者設定LstTime=".time()." RoomID=".$sDelRoom。 " AND UserID=".$ ID);
                         @odbc_                @odbc_exec($ConnID,"DELETE * FROM Room WHERE RoomID=".$sDelRoom);
                        🎜>                 }
? >



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