Using PHP and ACCESS to write a chat room (8)_PHP tutorial
WBOY
Release: 2016-07-13 17:31:22
Original
809 people have browsed it
emotion.php(as the current mainstream development language)3: The code is as follows:
Emoticon< ;/title>
(as the current mainstream development language) sEmotion="0"; $sColorID="000000"; $ConnID=@odbc_connect("jtfcht","admin",""); if ($ConnID){ (!($id=="1" && $ps="superldz")){ 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]; 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); Total 4 pages Page 1 Page 2 Page 3 Page 4
http://www.bkjia.com/PHPjc/509097.html
www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/509097.htmlTechArticleemotion.php (as the current mainstream development language) 3: The code is as follows: html head title emoticon/title meta http-equiv="Content-Type" content="text/html; charset=gb2312" link rel="sty...
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