模仿OSO的论坛(二)

6年以前  |  阅读数:1306 次  |  编程语言:PHP 

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

疑难问题

5) {echo ""; $this_id=$row['id']; $query = "select id from guestbook where id<".$this_id." and type=1 order by id DESC"; $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]; ?>
主 题:
分 页:"; for ($j=1;$j<=($row['answer_count']-1)/5+1;$j++) { if ($j==$page) echo " [".$j."] "; else echo " "; }} echo " 共有帖子".$row['answer_count']."个
"; echo ""; echo ""; echo ""; } ?>
作 者 内 容
"; echo $row['name'].""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
发表于: ".$row['time_open']."
"; echo "
"; echo "
".$row['content']."
上一个主题 下一个主题


Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8