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

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

  1. <?php
  2. $ecms_bq_sql=sys_ReturnEcmsLoopBq("select * from [!db.pre!]enewstagsdata where classid=’$navinfor[classid]’ and id=’$navinfor[id]’ order by tagid",3,24,0);
  3. $bqno=0;
  4. while($bqr=$empire->fetch($ecms_bq_sql))
  5. {
  6. $bqsr=sys_ReturnEcmsLoopStext($bqr);
  7. $bqno++;
  8. ?>      
  9. <?php
  10. $ecms_bq_sql2=sys_ReturnEcmsLoopBq("select * from [!db.pre!]enewstags where tagid=’$bqr[tagid]’ order by tagid",1,24,0);
  11. $bqno2=0;
  12. while($bqr2=$empire->fetch($ecms_bq_sql2))
  13. {
  14. $bqsr2=sys_ReturnEcmsLoopStext($bqr2);
  15. $bqno2++;
  16. ?>
  17. <a href="<?=$public_r[newsurl]?>tags-<?=$bqr[‘tagid’]?>-0.html" target="_blank"><?=$bqr2[tagname]?></a>  
  18. <?php
  19. }
  20. }
  21. ?>

复制代码

温馨提示:本文最后更新于2022-09-12 11:37:41,某些文章具有时效性,若有错误或已失效,请在下方留言或联系丁塔克博客
© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享
评论 抢沙发

请登录后发表评论