Implementation ideas and core procedures for simulating OICQ (2)_PHP tutorial

WBOY
Release: 2016-07-21 16:06:37
Original
753 people have browsed it

3 Online user information scanning and updating
Use the built-in frame in the web page to call the scanning and updating program. 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;

// Find new comments
$query = "select * from forumtalk where readsign=0 and receiver='$name'";
$result = mysql_query($query);
if( mysql_num_rows($result) > 0)
{
// read Fetch and display the pop-up window
$msg = mysql_fetch_array($result);
$numberfriend = $msg['id'];
echo "";
}

// Set the latest time mark of the current 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 "";
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/315352.htmlTechArticle3 Online user information scanning and updating uses a built-in frame in the web page to call the scanning and updating program. This line also You can see it in the source code of the web page! iframe name=flush src=userflush.p...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!