友情链接调用(注意ID classid=1 1是台栏目的id)
<?php
$dosql->Execute("SELECT * FROM `#@__weblink` WHERE classid=1 AND checkinfo=true ORDER BY orderid,id DESC");
while($row = $dosql->GetArray())
{
?>
<a href="<?php echo $row['linkurl']; ?>" target="_blank"><?php echo $row['webname']; ?></a> |
<?php
}
?>