Emotion. php (as the mainstream development language) 3: Code: & lt; html & gt; & lt; head & gt; & lt; title & gt; emoticons & lt; /title & gt; & lt; metahttp-equivContent-Typecontenttext/html; charsetgb2312 & gt; & lt; linkre emotion. php (as the mainstream development language) 3:
The code is as follows:
Emoticons
$ 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 pages, 1st pages, 2nd pages, 3rd pages, 4th pages