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

用PHP和ACCESS写聊天室(九)_PHP教程

WBOY
WBOY原創
2016-07-13 17:31:24898瀏覽

enterrm.php(做为现在的主流开发语言)3
代码如下:
(做为现在的主流开发语言)
        $ConnID=@odbc_connect("jtfcht","admin","");
        if ($ConnID){
                $result=@odbc_exec($ConnID,"SELECT PassWord,LstTime,RoomID,RefRate FROM User WHERE UserID=".$id);
                if (@odbc_fetch_into($result,0,&$rArr)){
                        $sRoomID=$rArr[2];
                        $sRefRate=(int)$rArr[3];
                        if ($sRefRate                        if (($rArr[0]==$ps) && ($rArr[1]>=(time()-1800))){
                                $sNewRoomID=substr($selRoom,2);
                                if ($sNewRoomID!=$sRoomID){
                                        $result=@odbc_exec($ConnID,"SELECT Password FROM Room WHERE RoomID=".$sNewRoomID);
                                        if (@odbc_fetch_into($result,0,&$rArr)){
                                                if ((strlen(trim($rArr[0]))==0) || ($rArr[0]==$sPass)){
                                                        @odbc_exec($ConnID,"UPDATE User SET RoomID=".$sNewRoomID.",ToID=0,ToName=大家 WHERE UserID=".$id);

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/509096.htmlTechArticleenterrm.php (做为现在的主流开发语言) 3 代码如下: ?php (做为现在的主流开发语言) ConnID=@odbc_connect("jtfcht","admin",""); if (ConnID) result=@odbc_exec(Con...
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn