{eval $catlist=$this->getlistbysql("select id,name,displayorder,grade from ".$this->db->dbprefix."category where iscourse=0 and isuseask=1 and grade=1 and pid=0 order by displayorder desc limit 0,4");}
{loop $catlist $index $cat}
{/loop}
比如查询分类id为8,9,10的分类信息
具体sql这么写:
select * from whatsns_category where id in(8,9,10)
放模板中这样写:
作者追问:2020-06-26 19:56
是我问错了,是调用一级分类栏目如果我还在一级分类栏目添加子分类栏目调用栏目下添加内容条数, 是要怎么实现求调用代码
一周热门 更多>