include("config.php"); $conn = connectMySql(); if(empty($artID)) $artID="0"; $ID = ereg_replace("[^0-9]","",$artID); $count = "select count(*) as dd from dede_feedback where artID=$ID And ischeck=1"; $rsc=mysql_query($count,$conn); $rowc=mysql_fetch_object($rsc); $total_record = $rowc->dd; $rs = mysql_query("select * from dede_feedback where artID=$ID And ischeck=1 order by ID desc limit 5",$conn); $top=5; if($total_record < $top)$top=$total_record; if($total_record == 0) $info="document.write('本文现在没有评论信息,欢迎发表评论。