支持oicq頭像,自動分頁,顯示留言人ip,email合法性驗證,方便安全的留言管理,
沒有復(fù)雜函數(shù),初學(xué)者也很容易看懂。
程序示例:http://medguider.51.net/notebook/
完整程序下載(包括圖片)http://medguider.51.net/downlo " /> 国产亚洲欧美日韩综合综合二区,葵司中文第一次大战黑人,男人J放进女人屁股免费观看

天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

支持oicq頭像的留言簿(一)

特點:
支持oicq頭像,自動分頁,顯示留言人ip,email合法性驗證,方便安全的留言管理,
沒有復(fù)雜函數(shù),初學(xué)者也很容易看懂。
程序示例:http://medguider.51.NET/notebook/
完整程序下載(包括圖片)http://medguider.51.NET/download/notebook.zip
程序清單:
config.php 配置文件 mysql.txt 數(shù)據(jù)庫文件 index.php 顯示留言主程序 addnote.php 添加留言 delnote.php 刪除留言
mysql.txt
create table notebook (name char(6),email varchar(35),time char(30),face char(2),ip varchar(16),title varchar(255),nnote text);
//留言簿 name 姓名 email time 時間 face 頭像 ip title 標(biāo)題 nnote 內(nèi)容
config.php
<?php
//這里改為自己的數(shù)據(jù)庫用戶名與密碼
$db = mysql_connect("localhost", "root");
mysql_select_db("test",$db);
//這里改為自己的管理用戶名和密碼
$username="demo";
$password="demo";
?>
index.php
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<TITLE>留言簿</TITLE>
<style type="text/css">
<!--
.blue9 {  font-size: 9pt; color: #0099FF; text-decoration: none}
.black9 {  font-size: 9pt; text-decoration: none}
.purple10 {  font-size: 10pt; color: #9900FF; text-decoration: none}
.white12 {  font-size: 12pt; color: #FFFFFF; text-decoration: none}
a:visited {  color: #FFFFFF}
a:link {  color: #FFFFFF}
-->
</style>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<?php
include ("config.php");
$result = mysql_query("SELECT * FROM notebook ",$db);
$row=mysql_num_rows($result);//查看查詢結(jié)果有多少行
$max=$row; //帖子總數(shù)
//設(shè)每頁顯示10篇,可自行設(shè)定,$p總頁數(shù),$page第幾頁,$low 從第幾行開始讀,$x 讀取幾行
if (!$page){ $page=1;}//$page默認(rèn)值為1
$p=ceil($max/10);//頁數(shù)為$max/10的最大整數(shù)
$low=10*($page-1);
if($page==$p&&($max%10)<>0){$x=($max%10);} else {$x=10;}//如果是最后一頁,且不是10的整倍數(shù),讀取$max除以10的余數(shù),否則取10
if($max==0){$x=0;}//如果沒有帖子,$x取0
$result = mysql_query("select * from notebook ORDER BY time DESC limit $low,$x",$db);//按照帖子的時間降序查詢
?>
<table width="98%" border="0" cellspacing="0" cellpadding="0" height="61">
  <tr>  
    <td height="62" width="34%"><a href="http://www.medguider.com"><img src="image/logo.gif" width="243" height="60" alt="醫(yī)學(xué)導(dǎo)航網(wǎng)" border="0"></a></td>
    <td height="62" width="66%">  
      <div align="center"><img src="image/note.gif" width="410" height="60"><img src="image/y1.gif" width="60" height="60"></div>
    </td>
  </tr>
</table>
<table width="95%" border="1" cellspacing="0" cellpadding="0" height="253" bordercolordark="#FFFFFF" bordercolorlight="#003399" align="center">
  <tr>  
    <td height="250">  
      <div align="center"></div>
      <table width="95%" border="0" cellspacing="0" cellpadding="0" height="32" bgcolor="#3366FF">
        <tr>  
          <td width="26%" class="white12" height="23"><a href="../index.php" class="white12">首頁</a>  
            > 留言簿</td>
          <td width="48%" class="white12" height="23">  
            <?php
          echo "帖子總數(shù):  ",$max,"   第";
          for ($n=1;$n<=$p;$n++){
          echo "<a href=index.php?page=$n>$n</a> ";
          }
          echo "頁";
          ?>
          </td>
          <td width="15%" height="23"><a href="addnote.php"><img src="image/newthread.gif" width="91" height="21" border="0"></a></td>
          <td width="11%" height="23"><a href="delnote.php"><span class="white12">留言管理</span></a></td>
        </tr>
      </table>  
<?php
   for ($i=0;$i<=($x-1);$i++) {
   $name=mysql_result($result,$i,'name');
   $email=mysql_result($result,$i,'email');
   $face=mysql_result($result,$i,'face');
   $face='image/face/icon'.$face;    //用戶頭像
   $time=mysql_result($result,$i,'time');
   $ip=mysql_result($result,$i,'ip');
   $title=mysql_result($result,$i,'title');
   $nnote=mysql_result($result,$i,'nnote');
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' height=107' bordercolor='#FFFFFF'> <tr bgcolor='#eeeeee'>";  
echo "<td width='10%' height='33' bgcolor='#eeeeee' class='blue9'> <img src='$face.gif' width='32' height='32'></td>";
echo        "<td width='16%' height='33' bgcolor='#eeeeee' class='blue9'>留言人:$name</td>";
echo        "<td width='41%' height='33' bgcolor='#eeeeee' class='blue9'>發(fā)表于:$time</td>";
echo        "<td width='12%' height='33' bgcolor='#eeeeee' class='blue9'><a href='mailto:$email'><img src='image/email.gif' width='16' height='16' border=0></a></td>";
echo        "<td width='21%' height='33' class='blue9'><img src='image/ip.gif' width='13' height='15'>  $ip</td>  </tr> <tr>";  
echo        "<td colspan='5' class='purple10' height='33'>標(biāo)題:$title</td> </tr>";
echo        "<tr bgcolor='#ffffff'><td colspan='5' class='black9' height='37'>留言內(nèi)容:$nnote</td></tr></table>";
}
mysql_close($db);
?>     
    </td>
</tr>
</table>
</BODY>
</HTML> 

php技術(shù)支持oicq頭像的留言簿(一),轉(zhuǎn)載需保留來源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請第一時間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 亚洲精品无码专区在线播放 | 黑人寄宿羽月希产后奶水 | 国产成人理在线观看视频 | 一级毛片美国 | 色狠狠色狠狠综合天天 | 99久久国产综合精品 | 受喷汁红肿抽搐磨NP双性 | 香蕉视频国产精品 | jk白丝袜美女被男人桶 | 两性午夜刺激爽爽视频 | 5G在线观看免费年龄确认18 | wwwxxx日本护士 | 久久精品免视看国产 | 小小水蜜桃3视频在线观看 小向美奈子厨房magnet | 国产全部视频列表支持手机 | 又大又硬又爽免费视频 | 伊人大香线蕉精品在线播放 | 国产精品igao视频网网址 | 狼群资源网中文字幕 | 巨乳中文无码亚洲 | 美女教师朝桐光在线播放 | 国产全肉乱妇杂乱视频 | 国产伦子沙发午休系列资源曝光 | 久久久久久91香蕉国产 | 国产精品成久久久久三级四虎 | 男生扒开美女尿口戳戳 | 亚洲破处女| 青青视频国产依人在线 | 99久久久国产精品免费调教 | 99国产精品人妻无码免费 | 国产在线成人一区二区三区 | 欧美精品九九99久久在观看 | 男人插曲女人的叫声 | 国产在线精品国自产拍影院午夜 | XXX国产麻豆HD真实乱 | 男同志china免费视频 | 小SAO货叫大声点妓女 | 亚洲大片免费观看 | aaaaaa级特色特黄的毛片 | 啊叫大点声欠CAO的SAO贷 | 日本888xxxx|