• 聊天室php


    简介:这是聊天室php的详细页面,介绍了和php,有关的知识、技巧、经验,和一些php源码等。

    class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=323794' scrolling='no'> //第二页面 name="frame2.php"



    <?
    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);
    ?>

    <html>
    <head>
    <title>user list</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <meta http-equiv="Refresh" content="30; url=<? echo $PHP_SELF; ?>?userid=<?echo $userid?>">

    </head>


    <body bgcolor="#6699FF" text="#000000">
    <div id="Layer1" style="position:absolute; left:9px; top:37px; 94px; height:21px; z-index:1">
    <div align="center"><font color="#FF9999"><b>在线人数</b></font></div>
    </div>
    <div id="Layer2" style="position:absolute; left:14px; top:96px; 105px; height:276px; z-index:2">
    <p><i><font size="2" color="#FF9999">


    <?
    $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="<a href='".$PHP_SELF."?userid=".$userid."' onCLick=parent.bottom.user('".$row["id"]."')>".$row["id"];
    echo $user."</a>(".$row["sex"].")<br>";
    }
    ?>

    </font></i></p>
    <p>&nbsp;</p>
    </div>
    <div id="Layer3" style="position:absolute; left:20px; top:62px; 74px; height:11px; z-index:3">
    <div align="center"><font size="2" color="#FF9999">(<?echo $online ;?>人)</font></div>
    </div>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    </body>
    </html>

    “聊天室php”的更多相关文章 》

    爱J2EE关注Java迈克尔杰克逊视频站JSON在线工具

    http://biancheng.dnbcw.info/php/323794.html pageNo:15
  • 相关阅读:
    HTML和CSS 基本要点必看
    CSS
    六个选择器
    HTML初级课程 (自学可懂)
    this
    1.作用域链
    js if 语句
    js数据类型
    ifelse语句
    三元运算符
  • 原文地址:https://www.cnblogs.com/ooooo/p/2255014.html
Copyright © 2020-2023  润新知