if ( ! function_exists('GetTags'))
{
function GetTags($aid)
{
global $dsql;
$tags = '';
$query = "SELECT tag FROM `weiwei_taglist` WHERE aid='$aid' ";
$dsql->Execute('tag',$query);
while($row = $dsql->GetArray('tag'))
{
$tags .= ($tags=='' ? $row['tag'] : ','.$row['tag']);
}
return $tags;
}
}
|
if ( ! function_exists('GetTags'))
{
function GetTags($aid)
{
global $dsql;
$sql = "select tid from weiwei_taglist where aid='$aid' group by tid ";
$dsql->Execute('ala',$sql);
while($row=$dsql->GetObject('ala')){
$url=nic_tag_url($row->tid);
if ($arcRow = $dsql->GetOne("select * from weiwei_tagindex where id='".$row->tid."' ")) $tag=$arcRow["tag"];
else $tag="";
$str.=" <a href='".$url."' target=_blank><b>".$tag."</b></a> ";
}
return $str;
}
}
|
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!
转载请注明: 织梦文章列表页调用静态化的tag标签