$strlen=strlen($articlemsg);
if($strlen<50){
echo "<table align=center width=100%>";
echo "<tr align=center><td>";
echo"你是不是在灌水呀?為防止部分網友善意的灌水,本 " /> 亚洲热在线,日韩一级免费看,91香蕉视频在线

四虎精品视频-四虎精品成人免费网站-四虎黄色网-四虎国产视频-国产免费91-国产蜜臀97一区二区三区

文章推薦系統(二)

======APPRE.php==========
$strlen=strlen($articlemsg);
if($strlen<50){
  echo "<table align=center width=100%>";
  echo "<tr align=center><td>";
  echo"你是不是在灌水呀?為防止部分網友善意的灌水,本站規定你所提交的文章";
  echo"</td></tr>";
  echo"<tr align=center><td>";
  echo"的長度必須大于50個漢字。請你重新提交文章。謝謝";
  echo"</td></tr>";
  echo"<tr><td align=center>";
  echo"<a href=appre.htm>【重新提交文章】</a>   ";
  echo"<a href=index.php>【返回到主頁】</a>";
  echo"</td></tr>";
  echo"</table>";
  echo"<table border=0 cellpadding=5 cellspacing=0 width=100% bgcolor=00FF00>";
  echo"<tr>";
  echo"<td width=20%>|      <a href=index.php>返回首頁 </a>     </td>";
  echo"<td width=20%> | <a href=help.htm> 推薦說明</a> 
          |</td>";
  echo"<td width=20%>   <a href=#>搜索文章 </a> 
          |      </td>";
  echo"<td width=20%>  <a href=article.php>閱讀文章</a>    
          |</td>";
  echo"<td width=20%>  <a href=mailto:webinfro@163.com>聯系站長</a> 
          |</td>";
  echo"</tr>";
  echo"</table>";

  exit;
}
$strlen=strlen($name);
if($strlen<=1){
  echo"<table align=center width=100%>";
  echo"<tr align=center><td>";
  echo"請你正確輸入你的名字";
  echo"</td></tr>";
  echo"<tr><td align=center>";
  echo"【<a href=appre.htm>重新提交文章</a>】    ";
  echo"【<a href=index.php>返回主頁</a>】";
  echo"</td></tr>";
  echo"</table>";
  echo"<table border=0 cellpadding=5 cellspacing=0 width=100% bgcolor=00FF00>";
  echo"<tr>";
  echo"<td width=20%>|      <a href=index.php>返回首頁 </a>     </td>";
  echo"<td width=20%> | <a href=help.htm> 推薦說明</a> 
          |</td>";
  echo"<td width=20%>   <a href=#>搜索文章 </a> 
          |      </td>";
  echo"<td width=20%>  <a href=article.php>閱讀文章</a>    
          |</td>";
  echo"<td width=20%>  <a href=mailto:webinfro@163.com>聯系站長</a> 
          |</td>";
  echo"</tr>";
  echo"</table>";

  exit;
}
@$conn=mysql_connect("localhost","user","password");
mysql_select_db("bamboo");
$sql="select*from article where articlename='$articlename'";
$result=mysql_query($sql,$conn);
if($result){
  if(mysql_fetch_object($result)){
    echo"<table align=center width=100%>";
    echo"<tr><td align=center>";
    echo"你所推薦的文章已經存在了";
    echo"</td>";
    echo"<td align=center>";
    echo"<a href=appre.htm>重新推薦下一篇文章</a>";
    echo"</td></tr>";
    echo"<tr><td align=center>";
    echo"如果你確信本站沒有你所推薦的文章,請你點<a href=mailto:webinfro@163.com>這里</a>與此同時Bamboo聯系";
    echo"</td></tr>";
    echo"<tr><td align=center>";
    echo"【<a href=appre.htm>重新發表新的文章</a>】";
    echo"【<a href=index.php>返回主頁</a>】";
    echo"</td></tr>";
    echo"</table>";
    mysql_close($conn);
    echo"<table border=0 cellpadding=5 cellspacing=0 width=100% bgcolor=00FF00>";
    echo"<tr>";
    echo"<td width=20%>|      <a href=index.php>返回首頁 </a>     </td>";
    echo"<td width=20%> | <a href=help.htm> 推薦說明</a> 
          |</td>";
    echo"<td width=20%>   <a href=#>搜索文章 </a> 
          |      </td>";

    echo"<td width=20%>  <a href=article.php>閱讀文章</a>    
          |</td>";
    echo"<td width=20%>  <a href=mailto:webinfro@163.com>聯系站長</a> 
          |</td>";
    echo"</tr>";
    echo"</table>";

    exit;}
    }
$sql="select *from article where name=$name";
$result=mysql_query($sql,$conn);
if($result){
  if(mysql_fetch_object($result)){
  echo"<table width=100% align=center>";
  echo"<tr align=center>";
  echo"<td align=center>";
  echo"本站數據庫記錄顯示已經有一個和你同名的記錄,請你換一個名字重新發表文章";
  echo"</td></tr>";
  echo"<tr><td align=center>";
  echo"<a href=appre.htm>重新發表文章</a>";
  echo"<a href=index.php>返回主頁</a>";
  echo"</td></tr>";
  echo"</table>";
  mysql_close($conn);
  echo"<table border=0 cellpadding=5 cellspacing=0 width=100% bgcolor=00FF00>";
  echo"<tr>";
  echo"<td width=20%>|      <a href=index.php>返回首頁 </a>     </td>";
  echo"<td width=20%> | <a href=help.htm> 推薦說明</a> 
          |</td>";
  echo"<td width=20%>   <a href=#>搜索文章 </a> 
          |      </td>";
  echo"<td width=20%>  <a href=article.php>閱讀文章</a>    
          |</td>";
  echo"<td width=20%>  <a href=mailto:webinfro@163.com>聯系站長</a> 
          |</td>";
  echo"</tr>";
  echo"</table>";

  exit;
  }
}

echo $webadd1;
$sql="insert into article(name,webname,webadd,weblogo,articlename,articleauthor,articlemsg) values ('$name','$webname','$webadd','$weblogo','$articlename'
,'$articleauthor'
,'$articlemsg'
)";
//echo mysql_errno().":".mysql_error()."<br>";
if(mysql_query($sql,$conn)){
  echo"<table width=100% align=center>";
  echo"<tr><td align=center>";
  echo"謝謝你,斑竹園的發展離不開你的支持。你提交的文章已經接受";
  echo"</td></tr>";
  echo"<tr><td align=center>";
  echo"【<a href=appre.htm>提交另一篇文章</a>】";
  echo"【<a href=index.php>返回主頁</a>】";
  echo"</td></tr>";
  echo"</table>";
  mysql_close($conn);
  }
else{
  echo"<table width=100% align=center>";
  echo"<tr><td align=center>";
  echo"對不起,你提交的文章出現錯誤,請你重新提交";
  echo"</td></tr>";
  echo"<tr><td align=center>";
  echo"【<a href=appre.htm>重新提交</a>】";
  echo"【<a href=index.php>返回主頁</a>】";
  echo"</td></tr>";
  echo"</table>";
  mysql_close($conn);
  }
  echo"<table border=0 cellpadding=5 cellspacing=0 width=100% bgcolor=00FF00>";
  echo"<tr>";
  echo"<td width=20%>|      <a href=index.php>返回首頁 </a>     </td>";
  echo"<td width=20%> | <a href=help.htm> 推薦說明</a> 
          |</td>";
  echo"<td width=20%>   <a href=#>搜索文章 </a> 
          |      </td> ";
  echo"<td width=20%>  <a href=article.php>閱讀文章</a>    
          |</td>";
  echo"<td width=20%>  <a href=mailto:webinfro@163.com>聯系站長</a> 
          |</td>";
  echo"</tr>";
  echo"</table>";

?>

php技術文章推薦系統(二),轉載需保留來源!

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

主站蜘蛛池模板: 蜜桃成熟时在线看| 叶玉卿电影| 金枝玉叶电视剧免费观看| 电影邓稼先| 西班牙超级杯在哪看| 绝对权力全集免费观看| 昌秀 电影| 永恒万花筒佐助壁纸| 碧海晴天| 东方卫视节目表| 电子天平检定规程| 朱莉娅·安最经典十部电影| 电影痴汉电车| 龅牙兔八哥| 香谱72图解详细解释大全| 直播一级片| 男骑女| 科洛弗| 念亲恩简谱| superstar电影在线播放| 周韦彤写真| 大奉打更人电视剧| 肉丸3| 恐龙图片大全大图| 谭老板 电影| 社会好全部歌词| 电影院电影| 罗伯特·杜瓦尔| 云上的宝石| 底线电影| 马修·麦克费登| 歌曲串烧串词| 生日特效动图| 诈欺游戏电影| 喜迎20大文艺汇演主持词| 冷血惊魂| 美丽分贝 电视剧| 押韵表实用大全| 抚养费标准一般是多少钱一个月 | 二次元美女肚子慢慢变大衣服撑破| 小时代 电影|