Emotion. php (as the mainstream development language) 3:
The Code is as follows:
<Html>
<Head>
<Title> emotion </title>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Link rel = "stylesheet" href = "main.css" type = "text/css">
</Head>
<Body>
<? Php (as the mainstream development language)
$ 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