fetch_one_array("SELECT * FROM {$tablepre}xna_feed WHERE state<2 and feedid=$id limit 1"); if ($news){ $news[title] = "" . $news["feed_title"] . " - "; $news[ctime] = date("Y-m-d H:i:s",$news["addtime"]); $news[sum] = $xnum[$news[id]]; $news[hist] = $news[hist]; //显示上篇下篇的标题 $pre=bottom_title("pre",$id); $next=bottom_title("next",$id); $db->query("update {$tablepre}xna_feed set feed_hits=feed_hits + 1 WHERE feedid=$id"); }else{ message('无效文章', './'); } $sum = $db->fetch_one_array("SELECT count(*) as sum FROM {$tablepre}xna_comment WHERE feedid=$id "); $query = $db->query("SELECT * FROM {$tablepre}xna_comment WHERE feedid=$id order by commid ASC"); while ($row=$db->row($query)){ $n++; $row["n"] = $n; $row[user_ctime] = date("Y-m-d H:i:s",$row["user_ctime"]); $comm[] = $row; } include template("articles", _ROOT ."/template/digg/"); ?>