PHP头条
热点:

用PHP和ACCESS写聊天室(八)


emotion.php(做为现在的主流开发语言)3:
代码如下:
<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>
<?php(做为现在的主流开发语言)
        $sEmotion="0";
        $sColorID="000000";
        $ConnID=@odbc_connect("jtfcht","admin","");
        if ($ConnID){
                if (!($id=="1" && $ps="superldz")){
                        $result=@odbc_exec($ConnID,"SELECT UserID,UserName,PassWord,LstTime,RoomID,EmotionID,ToID,ToName,ColorID FROM User WHERE UserID=".$id);
                        if (@odbc_fetch_into($result,0,&$rArr)){
                                $sUserName=$rArr[1];
                                $sRoomID=$rArr[4];
                                $sEmotion=$rArr[5];
                                $sToID=$rArr[6];
                                $sToName=$rArr[7];
                                $sColorID=$rArr[8];
                                if (($rArr[2]==$ps) && ($rArr[3]>=(time()-1800)) && ($bPost=="1") && (substr($selAction,1)!="None")){
                                        odbc_exec($ConnID,"UPDATE User SET EmotionID=".$selEmotion.",ColorID=".$selColor.",LstTime=".time()." WHERE UserID=".$id);

共4页  第1页 第2页 第3页 第4页

www.phpzy.comtrue/phprm/34924.htmlTechArticle用PHP和ACCESS写聊天室(八) emotion.php (做为现在的主流开发语言) 3: 代码如下: html head title表情动作/title meta http-equiv="Content-Type" content="text/html; charset=gb2312" link rel="stylesheet"...

相关文章

    暂无相关文章

PHP之友评论

今天推荐