<form id="hz9zz"></form>
  • <form id="hz9zz"></form>

      <nobr id="hz9zz"></nobr>

      <form id="hz9zz"></form>

    1. 明輝手游網中心:是一個免費提供流行視頻軟件教程、在線學習分享的學習平臺!

      模擬 OICQ 的完成思路與核心程序(二) 轉 --建議加入精華區

      [摘要]文章來源;PHP 世紀網3 在線用戶的信息掃描和更新在網頁中使用內置框架來調用掃描和更新程序,這行也能在網頁源代碼里面看到!<iframe name=flush src="userf...
      文章來源;PHP 世紀網
      3 在線用戶的信息掃描和更新
      在網頁中使用內置框架來調用掃描和更新程序,這行也能在網頁源代碼里面看到!
      <iframe name=flush src="userflush.php" width="0" height="0" frameborder="0" scrolling="NO" marginwidth="0" marginheight="0" hspace="0" vspace="0"></iframe>

      4 信息掃描和更新程序 userflush.php

      <?
      session_start();
      mysql_connect("localhost","","");
      mysql_select_db("php2000");
      $delaytime=0;

      // 查找新的發言
      $query = "select * from forumtalk where readsign=0 and receiver='$name'";
      $result = mysql_query($query);
      if( mysql_num_rows($result) > 0)
      {
      // 讀取和顯示彈出窗口
      $msg = mysql_fetch_array($result);
      $numberfriend = $msg['id'];
      echo "<script language=javascript>window.open('shortalk.php?action=view&talknumber=$numberfriend','_blank','width=300,height=250')</script>";
      }

      // 設置當前用戶的最新時間標志,表示它在線
      mysql_query("update userinfo set currentdate=".date("U")." where name='$name'");

      // 設置刷新時間間隔為15秒
      echo "<meta http-equiv='refresh' content='15;url=userflush.php'>";
      ?>




      日韩精品一区二区三区高清