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('本文现在没有评论信息,欢迎发表评论。
');\r\n"; else $info="document.write('本文共有".$total_record."条评论,最新".$top."条:
');\r\n"; echo $info; while($row = mysql_fetch_object($rs)) { $username = $row->username; $dtime = $row->dtime; $msg = $row->msg; // $info= "document.write('".$username." 于 ".$dtime." 发表评论
');"; // $info="document.write('".$msg."

');\r\n"; $info= "document.write('".$username." 于 ".$dtime." 发表评论
');"; echo $info; echo "document.write('".$msg."');"; $info="document.write('

');\r\n"; echo $info; } //如果想显示点击次数,请增加view, //即 ?>