EMOTION.PHP3:
The code is as follows:
<title>Expression action</title>
$sEmotion = "0";
$sColorID = "000000";
$C
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];
$sT
$sColorID = $RARR [8];
if ($RARR [2]== $ps) && ($rArr [3]>= (Time () -1800)) && ($bPost = = "1") && (substr ($selAction, 1) ! = "None")) {
Odbc_exec ($ConnID, "UPDATE User SET emoti WHERE userid=". $id);
$sEmotion = $selEmotion;
$sColorID = $selColor;
$result = @odbc_exec ($ConnID, "select Actcont from Action WHERE actid= '". substr ($selAction, 1).
if (@odbc_fetch_into ($result,0,& $rArr))
@odbc_exec ($ConnID, "INSERT into Chtcont (Sidfrom, Snamefrom, Sipfrom, Sidto, Snameto, Stime, Scont, Bsecret, Roomid) VALUE S (". $id.", "". $sUserName. "', '". getenv ("REMOTE_ADDR"). "',". $sToID. ",". $sToName. "', '". Date ("H:i:s"). "', '". Trim ($ Rarr[0]). "', False,". $sRoomID. ");
}
}
}
?>
@odbc_close ($ConnID);
}
?>
"The copyright of this article is owned by the author and house Orso near net, if need to reprint, please specify the author and source"
The above describes the use of PHP and access to write chat room eight, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.