Use PHP and ACCESS to write chat rooms (9 ). Enterrm. php (as the mainstream development language) 3 code :? Php (as the mainstream development language) Connjtfcht, admin,); if (ConnID) result @ odbc_exec (Con enterrm. php (as the mainstream development language) 3
The code is as follows:
$ ConnID = @ odbc_connect ("jtfcht", "admin ","");
If ($ ConnID ){
$ Result = @ odbc_exec ($ ConnID, "SELECT PassWord, LstTime, RoomID, RefRate FROM User WHERE UserID =". $ id );
If (@ odbc_fetch_into ($ result, 0, & $ rArr )){
$ SRoomID = $ rArr [2];
$ SRefRate = (int) $ rArr [3];
If ($ sRefRate <2) $ sRefRate = 2;
If ($ rArr [0] === ps) & ($ rArr [1] >=( time ()-1800 ))){
$ SNewRoomID = substr ($ selRoom, 2 );
If ($ sNewRoomID! = $ SRoomID ){
$ Result = @ odbc_exec ($ ConnID, "SELECT Password FROM Room WHERE RoomID =". $ sNewRoomID );
If (@ odbc_fetch_into ($ result, 0, & $ rArr )){
If (strlen (trim ($ rArr [0]) = 0) | ($ rArr [0] = $ sPass )){
@ Odbc_exec ($ ConnID, "UPDATE User SET RoomID =". $ sNewRoomID. ", ToID = 0, ToName = WHERE UserID =". $ id );
Http://www.bkjia.com/PHPjc/509096.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/509096.htmlTechArticleenterrm.php (as the mainstream development language) 3 code is as follows :? Php (as the mainstream development language) ConnID = @ odbc_connect ("jtfcht", "admin", ""); if (ConnID) result = @ odbc_exec (Con...