Rumah > pembangunan bahagian belakang > tutorial php > 模仿OSO的论坛(二)_PHP教程

模仿OSO的论坛(二)_PHP教程

WBOY
Lepaskan: 2016-07-21 16:02:07
asal
869 orang telah melayarinya

read.php(用来显示相关主题内容)

疑难问题


      
        
  
    


      
        
          
          
   if ($row['answer_count']>5)
    {echo "";
$this_id=$row['id'];
$query = "select id from guestbook where id$res = mysql_query($query);  
$row = mysql_fetch_row($res);  
$pre_id=$row[0];
$query = "select id from guestbook where id>".$this_id." and type=1 order by id";
$res = mysql_query($query);  
$row = mysql_fetch_row($res);  
$next_id=$row[0];
?>

主 题:          color=#993333>
include "connect.inc.php";
$query = "select * from guestbook where id=".$theme_id;
$res = mysql_query($query);  
$row = mysql_fetch_array($res);  
echo $row['theme'];
?>
            href="post.php">模仿OSO的论坛(二)_PHP教程            border=0 src="mypic/post.gif">  
            模仿OSO的论坛(二)_PHP教程            border=0  
            src="mypic/reply.gif">
            href="faq.php?page=1">模仿OSO的论坛(二)_PHP教程            border=0  
          src="mypic/theme.gif">
分 页:";
    for ($j=1;$j       if ($j==$page) echo " [".$j."] ";  
       else echo " ";  
       }}
      echo "   共有帖子".$row['answer_count']."个

      
        
        
          
          
$query = "select * from guestbook where main_id=".$theme_id." or id=".$theme_id." order by time_open DESC limit ".strval(($page-1)*5).",5";
$res = mysql_query($query);  
function TdBackColor() {
  static $ColorStr;
  if ($ColorStr=="#ededed") {
    $ColorStr="#dedede";
  } else {
    $ColorStr="#ededed";
  }
  return($ColorStr);
}
for ($i=1;$i{$row = @mysql_fetch_array($res);  
if(!$row) break;  
$ColorStr=TdBackColor();
echo "";
echo "";
echo "";
echo "";
}
?>      
        
          
          
作  
            者
内  
            容
echo "class=mid>";  
echo $row['name']."
";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "
模仿OSO的论坛(二)_PHP教程echo " src='mypic/icon".$row['icon'].".gif'>发表于: ".$row['time_open']."
";
echo "
";
echo "
".$row['content']."
              href="read.php?theme_id=&page=1">            color=#ffffff>上一个主题                href="read.php?theme_id=&page=1">            color=#ffffff>下一个主题

      





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...
sumber:php.cn
Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan