本文是介紹的帝國cms內容頁SQl方式調用當前TAG標簽的方式 具體調用代碼如下:
<?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;?>






