国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 開發(fā)設(shè)計 > 正文

文章推薦系統(tǒng)(二)

2019-11-18 20:41:38
字體:
供稿:網(wǎng)友
======APPRE.php==========
$strlen=strlen($articlemsg);
if($strlen<50){
  echo "<table align=center width=100%>";
  echo "<tr align=center><td>";
  echo"你是不是在灌水呀?為防止部分網(wǎng)友善意的灌水,本站規(guī)定你所提交的文章";
  echo"</td></tr>";
  echo"<tr align=center><td>";
  echo"的長度必須大于50個漢字。請你重新提交文章。謝謝";
  echo"</td></tr>";
  echo"<tr><td align=center>";
  echo"<a href=appre.htm>【重新提交文章】</a>&nbsp;&nbsp;&nbsp";
  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%>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href=index.php>返回首頁&nbsp;</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>";
  echo"<td width=20%>&nbsp;|&nbsp;<a href=help.htm> 推薦說明</a>&nbsp;
          |</td>";
  echo"<td width=20%>&nbsp;&nbsp; <a href=#>搜索文章&nbsp;</a>&nbsp;
          |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>";
  echo"<td width=20%>&nbsp; <a href=article.php>閱讀文章</a>&nbsp;&nbsp;&nbsp;&nbsp;
          |</td>";
  echo"<td width=20%>&nbsp; <a href=mailto:webinfro@163.com>聯(lián)系站長</a>&nbsp;
          |</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>】&nbsp;&nbsp;&nbsp;&nbsp";
  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%>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href=index.php>返回首頁&nbsp;</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>";
  echo"<td width=20%>&nbsp;|&nbsp;<a href=help.htm> 推薦說明</a>&nbsp;
          |</td>";
  echo"<td width=20%>&nbsp;&nbsp; <a href=#>搜索文章&nbsp;</a>&nbsp;
          |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>";
  echo"<td width=20%>&nbsp; <a href=article.php>閱讀文章</a>&nbsp;&nbsp;&nbsp;&nbsp;
          |</td>";
  echo"<td width=20%>&nbsp; <a href=mailto:webinfro@163.com>聯(lián)系站長</a>&nbsp;
          |</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"你所推薦的文章已經(jīng)存在了";
    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聯(lián)系";
    echo"</td></tr>";
    echo"<tr><td align=center>";
    echo"【<a href=appre.htm>重新發(fā)表新的文章</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%>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href=index.php>返回首頁&nbsp;</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>";
    echo"<td width=20%>&nbsp;|&nbsp;<a href=help.htm> 推薦說明</a>&nbsp;
          |</td>";
    echo"<td width=20%>&nbsp;&nbsp; <a href=#>搜索文章&nbsp;</a>&nbsp;
          |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>";

    echo"<td width=20%>&nbsp; <a href=article.php>閱讀文章</a>&nbsp;&nbsp;&nbsp;&nbsp;
          |</td>";
    echo"<td width=20%>&nbsp; <a href=mailto:webinfro@163.com>聯(lián)系站長</a>&nbsp;
          |</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"本站數(shù)據(jù)庫記錄顯示已經(jīng)有一個和你同名的記錄,請你換一個名字重新發(fā)表文章";
  echo"</td></tr>";
  echo"<tr><td align=center>";
  echo"<a href=appre.htm>重新發(fā)表文章</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%>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href=index.php>返回首頁&nbsp;</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>";
  echo"<td width=20%>&nbsp;|&nbsp;<a href=help.htm> 推薦說明</a>&nbsp;
          |</td>";
  echo"<td width=20%>&nbsp;&nbsp; <a href=#>搜索文章&nbsp;</a>&nbsp;
          |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>";
  echo"<td width=20%>&nbsp; <a href=article.php>閱讀文章</a>&nbsp;&nbsp;&nbsp;&nbsp;
          |</td>";
  echo"<td width=20%>&nbsp; <a href=mailto:webinfro@163.com>聯(lián)系站長</a>&nbsp;
          |</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"謝謝你,斑竹園的發(fā)展離不開你的支持。你提交的文章已經(jīng)接受";
  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"對不起,你提交的文章出現(xiàn)錯誤,請你重新提交";
  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%>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href=index.php>返回首頁&nbsp;</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>";
  echo"<td width=20%>&nbsp;|&nbsp;<a href=help.htm> 推薦說明</a>&nbsp;
          |</td>";
  echo"<td width=20%>&nbsp;&nbsp; <a href=#>搜索文章&nbsp;</a>&nbsp;
          |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td> ";
  echo"<td width=20%>&nbsp; <a href=article.php>閱讀文章</a>&nbsp;&nbsp;&nbsp;&nbsp;
          |</td>";
  echo"<td width=20%>&nbsp; <a href=mailto:webinfro@163.com>聯(lián)系站長</a>&nbsp;
          |</td>";
  echo"</tr>";
  echo"</table>";

?>
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 吉林市| 洪湖市| 五指山市| 仙居县| 常山县| 昆山市| 东乡县| 榆社县| 会宁县| 鹤壁市| 临城县| 云南省| 马龙县| 伊金霍洛旗| 饶河县| 石渠县| 通河县| 井冈山市| 凤翔县| 正蓝旗| 高淳县| 芮城县| 皮山县| 息烽县| 衡南县| 天峨县| 安乡县| 长春市| 桑日县| 天峨县| 红原县| 平定县| 温州市| 长沙市| 堆龙德庆县| 东源县| 浮梁县| 上思县| 松原市| 华坪县| 泗洪县|