帝国CMS二次开发调用指定tags分类下的信息
2020-04-10 站长 站长日志
帝国CMS调用指定tags分类信息代码
| 1 2 3 4 5 6 7 8 9 10 11 |
<?$path=$_GET[path];$r=$empire->fetch1("select tagname,tagkey,tagintro,cid,path from {$dbtbpre}enewstags where path='$path' limit 1");$tagsql=$empire->query("select tagid,tagname,path from {$dbtbpre}enewstags where cid='$r[cid]'");while($r=$empire->fetch($tagsql)){?><a href="/tag/<?=$r[path]?>.html" title="<?=$r[tagname]?>"><?=$r[tagname]?></a><?}?> |
cid=1为tags分类ID为1的信息
上一篇:帝国cms灵动标签判断索引加样式
