您的位置:首页 > 帝国cms教程

帝国cms文章内容页调用当前文章tags

2020-10-26 23:55:28 帝国cms教程 111

帝国cms文章内容页调用当前文章tags

<?php
$ecms_bq_sql=sys_ReturnEcmsLoopBq("select * from [!db.pre!]enewstagsdata where classid='$navinfor[classid]' and id='$navinfor[id]' order by tagid",3,24,0);
$bqno=0;
while($bqr=$empire->fetch($ecms_bq_sql))
{
$bqsr=sys_ReturnEcmsLoopStext($bqr);
$bqno++;
?>  
<?php
$ecms_bq_sql2=sys_ReturnEcmsLoopBq("select * from [!db.pre!]enewstags where tagid='$bqr[tagid]' order by tagid",1,24,0);
$bqno2=0;
while($bqr2=$empire->fetch($ecms_bq_sql2))
{
$bqsr2=sys_ReturnEcmsLoopStext($bqr2);
$bqno2++;
?>
<a href="<?=$public_r[newsurl]?>tags-<?=$bqr['tagid']?>-0.html" target="_blank"><?=$bqr2[tagname]?></a>
<?php
}
}
?>

 

 

 

相关推荐