欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

random access memories 用PHP和ACCESS写聊天室九

程序员文章站 2022-05-16 10:13:52
...
enterrm.php3
代码如下:
$C
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,T 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{
?>


输入房间口令






输入房间口令














口令:


这里放弃




exit();
}
}
else{
?>


加入房间出错





这个房间已经被拆了!


这里返回




exit();
}
}
}
else echo "";
}
else echo "";
@odbc_close($ConnID);
}
else echo "";
include("room.php3");
?>
【本文版权归作者与奥索网共同拥有,如需转载,请注明作者及出处】

以上就介绍了random access memories 用PHP和ACCESS写聊天室九,包括了random access memories方面的内容,希望对PHP教程有兴趣的朋友有所帮助。