在plus目錄下,建立一個(gè)名為feedcount.php的文件,加入下面代碼
document.write("共有GetOne("select count(*) as fc from idea_feedback "); 
if(!is_array($row)){ 
echo "0"; 
}else { 
echo $row['fc']; 
?>條評(píng)論內(nèi)容!");
前端調(diào)用
<script type="text/javascript" 
src="{dede:field name='phpurl'/}/feedcount.php?aid={dede:field.id/}">
</script>