Chat room PHP

Source: Internet
Author: User
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
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.