六月婷婷综合激情-六月婷婷综合-六月婷婷在线观看-六月婷婷在线-亚洲黄色在线网站-亚洲黄色在线观看网站

明輝手游網(wǎng)中心:是一個(gè)免費(fèi)提供流行視頻軟件教程、在線學(xué)習(xí)分享的學(xué)習(xí)平臺(tái)!

用PHP與ACCESS寫聊天室(9)

[摘要]enterrm.php3 代碼如下: <?php ConnID=@odbc_connect("jtfcht","admin",""); if (ConnID) resu...
enterrm.php3
代碼如下:
<?php
        $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<2) $sRefRate=2;
                        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);
                                                        if ((int)$sRoomID!=1){
                                                                $result=@odbc_exec($ConnID,"SELECT COUNT(UserID) FROM User WHERE RoomID=".$sRoomID);
                                                                @odbc_fetch_into($result,0,&$rArr);
                                                                if ($rArr[0]==0) @odbc_exec($ConnID,"DELETE * FROM Room Where RoomID=".$sRoomID);
                                                        }
                                                }
                                                else{
?>
<html>
<head>
<title>輸入房間口令</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="main.css" type="text/css">
<script language="JavaScript">
<!--

function PassSetFocus( ) {
        document.frmEnterSm.sPass.focus();
}

//-->
</script>
<link rel="stylesheet" href="main.css" type="text/css">
</head>
<body onload="PassSetFocus();">
<p>&nbsp;</p>
<p align="center"><font color="#996666">輸入房間口令</font></p>
<form name="frmEnterSm" action="enterrm.php3" method="post">
<table width="100%" border="0" align="center">
        <tr>
                <td colspan="2"><input type="hidden" name="selRoom" value="<?php echo $selRoom; ?>"><input type="hidden" name="id" value="<?php echo $id; ?>"><input type="hidden" name="ps" value="<?php echo $ps; ?>"></td>
        </tr>
        <tr>
                <td width="40%" align="right">口令:</td>
                <td width="60%"><input type="password" name="sPass" maxlength="10" size="8"></td>
        </tr>
        <tr>
                <td colspan="2" align="center"><input type="submit" name="cmdYes" value="進(jìn)入"></td>
        </tr>
</table>
</form>
<p align="center">按<a href="room.php3?id=<?php echo $id; ?>&ps=<?php echo $ps; ?>&at=<?php echo time(); ?>">這里</a>放棄</p>
</body>
</html>
<?php
                                                        exit();
                                                }
                                        }
                                        else{
?>
<html>
<head>
<title>加入房間出錯(cuò)</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="main.css" type="text/css">
</head>
<body>
<p>&nbsp;</p>
<p align="center">這個(gè)房間已經(jīng)被拆了!</p>
<p align="center">按<a href="room.php3?id=<?php echo $id; ?>&ps=<?php echo $ps; ?>&at=<?php echo time(); ?>">這里</a>返回</p>
</body>
</html>
<?php
                                                exit();
                                        }
                                }
                        }
                        else echo "<html><head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>房間</title><link rel='stylesheet' href='main.css' type='text/css'></head><body></body></html>";
                }
                else echo "<html><head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>房間</title><link rel='stylesheet' href='main.css' type='text/css'></head><body></body></html>";
                @odbc_close($ConnID);
        }
        else echo "<html><head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>房間</title><link rel='stylesheet' href='main.css' type='text/css'></head><body></body></html>";
        include("room.php3");
?>



【本文版權(quán)歸作者與奧索網(wǎng)共同擁有,如需轉(zhuǎn)載,請(qǐng)注明作者及出處】    



相關(guān)文章

主站蜘蛛池模板: 亚州视频在线 | 色资源网 | 午夜微博| 天堂v | 四虎影视国产精品亚洲精品hd | 亚洲淫片 | 欧美一卡二卡3卡4卡无卡免费 | 人人揉揉香蕉大免费不卡 | 日本高清免费在线视频 | 日韩在线观看视频免费 | 中文在线√天堂 | 婷婷亚洲综合五月天小说 | 亚洲伊人久久精品 | 午夜免费啪视频 | 一二三四五影视在线播放 | 五月香福利 | 夜夜夜夜夜夜夜工噜噜噜 | 日韩免费在线观看视频 | 日韩欧美日本 | 一级做a爱片久久毛片 | 日日干夜| 日韩国产欧美精品综合二区 | 伊人久久精品 | 啪啪自拍 | 天天躁夜夜躁狠狠躁 | 日本三级成人中文字幕乱码 | 日韩欧美视频免费观看 | 午夜小视频在线播放 | 日韩中文字幕一区 | 日本天堂视频在线观看 | 在线免费视频一区二区 | 亚洲专区路线一路线二天美 | 在线小视频国产 | 天天天天做夜夜夜做 | 凸凹在线视频 | 欧美特级午夜一区二区三区 | 色又色| 色播影视| 日韩中文字幕网站 | 青娱乐青青 | 五月婷婷七月丁香 |