易优cms统计搜索结果页关键词文章数量
2022-06-17 加入收藏
{eyou:assign name="keywords" value="$eyou.field.keywords"} <!--通过自定义变量assign获取关健词--> {eyou:sql sql='Select count(*) as AllNum from ey_archives where title like "%$keywords%" AND is_del = 0' cachetime='-1'} {$field.AllNum} <!--返回查询数量为allNum字段--> {/eyou:sql}