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; }}
即可,这样再重新更新有调用tag的栏目和文章就能实现静态化超链接。
新闻热点
疑难解答