新一個名為feedcount.php的文件,放到根目錄下的plus里面,內(nèi)容為
document.write("共有
require_once(dirname(__FILE__)."/../include/common.inc.php");
$row = $db->GetOne("select count(*) as fc from dede_feedback where aid='{$aid}'");
if(!is_array($row)){
echo "0";
}else {
echo $row['fc'];
}?>位用戶了發(fā)表評論");
頁面調(diào)用代碼:
<script type="text/javascript" src="{dede:field name='phpurl'/}/feedcount.php?aid={dede:field name='id'/}&mid={dede:field name='mid'/}" type='text/javascript' language="javascript"></script>
]]>