Home >Backend Development >PHP Tutorial >The implementation ideas and core program of simulating OICQ - it is recommended to join the highlight area_PHP tutorial
Article source; PHP Century Network 3 Online user information scanning and updating Use built-in frames in web pages to call scanning and updating programs. This line can also be seen in the web page source code! 4 Information scanning and updating program userflush.php session_start(); mysql_connect("localhost","",""); mysql_select_db("php2000"); $delaytime=0; // 查找新的发言 $query = "select * from forumtalk where readsign=0 and receiver=$name"; $result = mysql_query($query); if( mysql_num_rows($result) > 0) { // Read and display the pop-up window $msg = mysql_fetch_array($result); $numberfriend = $msg[id]; echo ""; } // Set the current The latest time stamp of the user, indicating that it is online mysql_query("update userinfo set currentdate=".date("U")." where name=$name"); // Set the refresh interval to 15 seconds echo "" ; ?>