帝国CMS二次开发调用指定tags分类下的信息
2019-03-16 站长 站长日志
帝国CMS调用指定tags分类信息代码
<?
$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的信息
下一篇:灵动标签判断索引加样式
