帝国CMS灵动标签loop调用TAG标签
代码如下:
[e:loop={0,10,3,1,'','newstime DESC'}] query("select * from phome_ecms_news_data_1 where id =".$bqr[id].""); $r1=$empire->fetch($newbook1); $a="$r1[infotags]"; $str=str_replace(',', ',', $a); $tag=''; $t= explode(",", $str); for($i=0;$i".$t[$i]." "; } } echo $tag; ?> [/e:loop]
搞定!很简单!