帝国CMS按分类调tags

帝国CMS按分类调tags代码<?php
$sql2="select tagid,tagname,num,isgood,cid,css from {$dbtbpre}enewstags where cid like &#39;%,2,%&#39; and isgood>0 limit 100";
$key_sql=$empire->query

[时间:10-23]    [浏览:]    [放入收藏夹]    [查看详情]

帝国CMS按分类调tags代码

<?php
$sql2="select tagid,tagname,num,isgood,cid,css from {$dbtbpre}enewstags where cid like '%,2,%'  and isgood>0 limit 100";
	$key_sql=$empire->query($sql2);
	while($tagr=$empire->fetch($key_sql))
	{
           echo(' <a href="/tag_'.$tagr['tagid'].'_1.html" target="_blank" class="'.$tagr['css'].'">'.$tagr['tagname'].'</a>');
}
?>

httpd.ini伪静态规则

 RewriteRule ^/tag_([0-9]+)_([0-9]+).html$  /e/tags/index.php?tagid=$1&page=$2

  本文转载自:精准像素:11px.cn ,感谢作者分享实用知识


标签: