帝国CMS按tags分类调用标签代码
<? $tagql=$empire->query("select tagid,tagname,path from {$dbtbpre}enewstags where cid in(1,2,3,4,5,6,7) and isgood=1 order by cid asc limit 20"); $bqno=1; while($r=$empire->fetch($tagql)) { ?> <li ><a href="/tag/<?=$r[path]?>.html" target="_blank"><?=$r[tagname]?></a></li> <?php $bqno++; } ?>
in(1,2,3,4,5,6,7)为指定的tags分类ID
limit 20调用20条信息