首頁 >後端開發 >php教程 >模仿OSO的論壇(二)_PHP教程

模仿OSO的論壇(二)_PHP教程

WBOY
WBOY原創
2016-07-21 16:02:07864瀏覽

read.php(用於顯示相關主題內容)

疑難問題;


   =0 width="100%" class=body_br >
        ;
  
    

    

    

    =0 width=100%>
         ;
          主題:include "connect .inc.php";
$query = "從留言簿中選擇*,其中id=".$theme_id;
$res = mysql_query($query);  
$row = mysql_fetch_array($res );  
echo $row['主題'];
? >

          模仿OSO的論壇(二)_PHP教程            border=0 src="mypic/post.gif 「>  
    ">模仿OSO的論壇(二)_PHP教程            border=0  
           href="faq.php?page=1">模仿OSO的論壇(二)_PHP教程            border =0  
          src="mypic/theme.gif"> TD

   if ($row['answer_count']> {echo " 分頁:";
    for ($j=1;$j       if ($j==$page) echo " [".$j."] ";  
 ='read.php?theme_id=".$row['id']."&page=".$j."'[".$j."]
> ; ";  
       } }
      echo "   共同貼文".$row['answer_count']."個";
$this_id=$row['id'];
$query = "從留言簿中選擇id,其中id$res = mysql_query($query);  
$row = mysql_fetch_row($res);  
$row = mysql_fetch_row($res);  
$row = mysql_fetch_row($res); pre_id=$row[0];
$query = "從留言簿選擇id,其中id>".$this_id." and type=1 order by id";
$res = mysql_query($query );  
$row = mysql_fetch_row($res);  
$next_id=$row[0];
? >


      
>        
          #6f6f6f width="20%">d >
          內  
            容

$ res = mysql_query($query);  
函數TdBackColor() {
  static $ColorStr;
  if ($ColorStr=="#ededed") {
  if ($ColorStr=="#ededed") {
 🎜>  } else {
    $ColorStr="#ededed";
  }
  return($ColorStr); }   return($ColorStr); } {$row = @mysql_fetch_array($res);  
if(!$row) 中斷;  
$ColorStr=TdBackColor();
回顯「」; >echo "echo "class=mid>";  
echo $row[ 'name']."
";
echo "";
echo "";
回顯「」;
回顯「」;
echo "模仿OSO的論壇(二)_PHP教程echo " src='mypic/icon".$row['icon'].".gif'>";
echo "";
echo "";
回顯「」;
echo "
發表於: ".$row['time_open']."
";
echo "
";
echo "
".$row['content']."
";
回顯「」;
}
?>      
        
    >            href="read.php?theme_id= php echo $pre_id?>&page=1">            color=#ffffff>上一個主題   me_id=&page=1">            color=#ffffff>下一個主題








http://www.bkjia.com/PHPjc/316715.html

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/316715.htmlTechArticleread.php(用來顯示相關主題內容) HTMLHEADTITLE疑難問題/TITLE LINK href=mypic/style.css rel=STYLESHEET type=text/css/HEAD BODY bgColor=#cccc99 bottomMargin=0 leftMargin=0...
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn