/** * 首页/列表获取文章Tag * * @access public * @param string $aid 文章id * @param string $num 数量 * @return string */if (!function_exists('GetMyTags')){ function GetMyTags($aid, $num=3) { global $dsql; $tags = ''; $query = "Select tag From `mydiy_taglist` Where aid='$aid' limit $num "; $dsql->Execute('tag',$query); while($row = $dsql->GetArray('tag')) { $tags.= ($tags=='' ? "<a href=/tags.php?/{$row['tag']} rel='tag'>{$row['tag']}</a>" : ','."<a href=/tags.php?/{$row['tag']} rel='tag'>{$row['tag']}</a>"); } return $tags; }} |
新闻热点
疑难解答