分 页:"; for ($j=1;$j if ($j==$page) echo " [".$j."] "; else echo ""; }} echo " 共有帖子".$row['answer_count']."个
"; $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]; ?>
作 者
内 容
$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 "