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");
$
?>
<title>User List</title>
? userid= ">
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 = "echo $user." (". $row [" Sex "].")
";
}
?>
( People
The above describes the Zhongyuan oilfield small east chat room chat room Php&mysql Two, including the Central Plains oilfield small East chat room content, I hope the PHP tutorial interested in a friend helpful.