sandisksecureaccess Use PHP and ACCESS to write chat room 6

WBOY
Release: 2016-07-29 08:34:32
Original
1111 people have browsed it

leave.php3 :
    $C
    if ($ConnID){
        if (!($id=="1" && $ps="superldz")){
            $result=@odbc_exec($ConnID,"SELECT UserName,PassWord,RoomID,Sex FROM User WHERE UserID=".$id);
            if (@odbc_fetch_into($result,0,&$rArr)){
                if ($rArr[1]==$ps)
                    if ($rArr[3])
                        @odbc_exec($ConnID,"INSERT INTO ChtCont (sIDFrom, sNameFrom, sIPFrom, sIDTo, sNameTo, sTime, sCont, bSecret, RoomID) VALUES (".$id.", '".$rArr[0]."', '".getenv("REMOTE_ADDR")."', 0, '大家', '".date("H:i:s")."', '【系统消息】".$rArr[0]."离开了这个聊天室', False, ".$rArr[2].")");
                    else
                        @odbc_exec($ConnID,"INSERT INTO ChtCont (sIDFrom, sNameFrom, sIPFrom, sIDTo, sNameTo, sTime, sCont, bSecret, RoomID) VALUES (".$id.", '".$rArr[0]."', '".getenv("REMOTE_ADDR")."', 0, '大家', '".date("H:i:s")."', '【系统消息】".$rArr[0]."离开了这个聊天室', False, ".$rArr[2].")");
            }
            @odbc_exec($ConnID,"UPDATE User SET RoomID=0,ToID=0,T WHERE UserID=".$id);
        }
        @odbc_close($ConnID);
    }
    header("Location: .");
?>

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!