Introduction: This is the chat room php detailed page, introduced and PHP, related knowledge, skills, experience, and some PHP source code and so on.
class= ' pingjiaf ' frameborder= ' 0 ' src= ' http://biancheng.dnbcw.info/pingjia.php?id=323794 ' scrolling= ' no ' >//second page Name= "Frame2. Php
Include ". /signup/mysql. PHP ";
Header ("Expires:sun, Dec 1997 09:32:45 GMT");
Header ("Cache-control:no-cache, must-revalidate");
Header ("Pragma:no-cache");
Header ("content-type:text/html; Charset=${charset} ");
$current _time=time ();
$delete _time= $current _time-40;
$sql = "Delete from Chat_user where last_time<". $delete _time;
mysql_query ($sql) or Die ("false Again");
$sql = "Update chat_user set last_time= ' $current _time ' where userid= ' $userid '";
mysql_query ($sql) or Die ("false");
$sql = "Select UserID from Chat_user";
$result =mysql_query ($sql) or Die ("Fallse");
$online =mysql_num_rows ($result);
?>
<title>User List</title>
number of people online
$sql = "Select Userid,id,sex from Chat_user";
$result =mysql_query ($sql) or Die ("Fallse");
while ($row =mysql_fetch_array ($result)) {
$user = $row [' userid '];
$user = "". $row ["id"];
echo $user. " (". $row [" Sex "].")
";
}
?>
( People
More articles about "Chat room php"
Love EE focus on Java Michael Jackson Video station JSON online tool
Http://biancheng.dnbcw.info/php/323794.html pageno:15