以下为引用的内容:
关键字:[field:id runphp=yes]
$tsql = new DedeSql(false);
$tags = '';
$tsql->SetQuery("Select i.tag From dede_taglist t left join dede_tagindex i on i.id=t.tid where t.aid='@me'");
$tsql->Execute('t');
while($row = $tsql->GetArray('t',MYSQL_ASSOC)){
$tags .= "<a href='/tags.php?/".urlencode($row['tag'])."' target='_blank'>".$row['tag']."</a> ";
}
@me=$tags;
[/field:id]
呵呵,高手别见笑啊!! |