代碼如下:
<?php
$ConnID=@odbc_connect("jtfcht","admin","");
if ($ConnID){
$result=@odbc_exec($ConnID,"SELECT PassWord,LstTime,RoomID,RefRate FROM User " /> 狠狠色综合久久丁香婷婷,4k岛国精品午夜高清在线观看,忘忧草秋观看未满十八

天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

用PHP和ACCESS寫聊天室(九)

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> </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="進入"></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>加入房間出錯</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="main.css" type="text/css">
</head>
<body>
<p> </p>
<p align="center">這個房間已經被拆了!</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");
?>



【本文版權歸作者與奧索網共同擁有,如需轉載,請注明作者及出處】    

php技術用PHP和ACCESS寫聊天室(九),轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 国产亚洲日韩欧美视频 | 男女一边摸一边做羞羞的事情免费 | 美女洗澡脱得一二干净 | 国产高清在线观看 | 日韩高清毛片 | 色综合a在线 | 男的插曲女的下面免费APP | 国内精品伊人久久久影院 | 菊地凛子av| 色综合99久久久国产AV | 前后灌满白浆护士 | 久久久伊人影院 | 国产精品日本欧美一区二区 | 亚洲日韩有码无线免费 | 午夜宅宅伦电影网 | 99免费在线观看视频 | 老女老肥熟国产在线视频 | 亚洲精品一卡二卡三卡四卡2021 | 日韩精品AV一区二区三区 | 美女在线永久免费网站 | 另类欧美尿交 | 日韩在线看片中文字幕不卡 | 国产在线精彩亚洲久久 | 大中国免费视频大全在线观看 | 秋霞电影在线观看午夜伦 | 99E久热只有精品8在线直播 | 99久久精品久久久久久清纯 | 毛片在线全部免费观看 | 91久久偷偷看嫩草影院无费 | 欧美手机在线播放 | 尹人久久大香找蕉综合影院 | 精品一区二区免费视频蜜桃网 | 一起碰一起噜一起草视频 | 黄页网址大全免费观看 | 国内视频在线精品一区 | 精品久久久爽爽久久久AV | 天天操天天干天天透 | 中文字幕精品在线视频 | 在线播放真实国产乱子伦 | 日本免费xxx | 免费观看久久 |