Page 2 name & quot; frame2.php & quot; & lt ;? Include & quot ;.. signupMySQL. php & quot; header (& quot; Expires: Sun, 28Dec199709: 32: 45GMT & quot;); header (& quot; Cache-Control: // name = "frame2.php" on the second page"
Include "../signup/MySQL. php ";
Header ("Expires: Sun, 28 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 );
?>
User list
Online users
$ 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"]. ")
";
}
?>
( Persons)