帝国cms内容模板sql语句方式调用当前TAG标签


方法1

<?php$fr=$empire->fetch1("select infotags from {$dbtbpre}ecms_news_data_{$navinfor[stb]} where id=$navinfor[id]");$infotags=$fr[infotags];//这个就是infotags字段内容$tag=;$t=explode(,,$infotags);//去逗号$d=count($t); for($i=0;$i<count($t);$i++) { if($t[$i]) { $tagslink="!--news.url--]e/tags/?tagname=".urlencode($t[$i])."&tempid=1"; $tag.="<a href=$tagslink target=_blank>".$t[$i]."</a> "; }}echo $tag;?>

方法2

<?$infotags=$navinfor[infotags];$tags=explode(',',$infotags);$count=count($tags);for($i=0;$i<$count;$i++){if($tags[$i]){$datar=$empire->fetch1("select * from {$dbtbpre}enewstags where tagname='$tags[$i]' limit 1");{$tag.='<a href="javascript:;" title="'.$tags[$i].'手机游戏合集">'.$tags[$i].'</a>';}}}echo $tag;?> 猜您喜欢的源码帝国CMS模板博客文章资讯自适应手机HTML5网站SEO优化版

帝国CMS7.5内核简洁文章资讯自适应手机HTML5综合类模板源码【内页 文章页、列表标题,描述,严格的SEO标题规范,利于SEO】



上一篇:帝国CMS内容页没有相关信息时,则调用其它文章信息的方法!

下一篇:如何快速学习和掌握帝国cms建站与模版仿站?


SQL 帝国cms 内容模板
Copyright © 2002-2019 测速网 www.inhv.cn 皖ICP备2023010105号
测速城市 测速地区 测速街道 网速测试城市 网速测试地区 网速测试街道
温馨提示:部分文章图片数据来源与网络,仅供参考!版权归原作者所有,如有侵权请联系删除!

热门搜索 城市网站建设 地区网站制作 街道网页设计 大写数字 热点城市 热点地区 热点街道 热点时间 房贷计算器