帝国CMS搜索关键字统计的方法可能实现思路,可以使用帝国 CMS 自带的功能灵动标签。

[e:loop={select searchid,keyboard,result_num from phome_enewssearch where iskey=0 order by onclick desc limit 10,10,24,0}]
<a href=/e/search/result/?searchid=<?=$bqr[searchid]?> target=_blank><?=$bqr[keyboard]?></a>(记录数:<?=$bqr[result_num]?>条)&nbsp;&nbsp;
[/e:loop]

指定一个栏目where iskey=0 and classid=1
指定多个栏目where iskey=0 and classid in(1,2,3........)