function getnews($linkdb){
    $command="select id,name,url,doc,type,time,Top from news where type='最新通知' order BY Top DESC, id DESC";
    $newsSet=mssql_query($command,$linkdb);
    while (list ($id,$name,$url,$doc,$type,$time,$Top)=mssql_fetch_row($newsSet)){
        $string.='<li><a href="news.php?type='.$type;
        if ($top==1){
$string.='&amp;name=<font color=red>'.$name.'</font>';
}
else{
$string.='&amp;name='.$name;
}
        $string.='&amp;url='.$url;
        $string.='&amp;time='.$time;
        $string.='&amp;doc='.$doc;
        $string.='" title="'.$name;
        $string.='" target="_blank"><span>'.$time.'</span>';
        $string.=mb_substr($name,0,25,'gb2312').'</a></li>';
    }
    return $string;
}top是是否置顶的字段,我想当标题置顶时字体显示为红色,但这段代码不起作用,不知道错在哪里,大家帮忙看看谢谢
if ($top==1){
$string.='&amp;name=<font color=red>'.$name.'</font>';
}
else{
$string.='&amp;name='.$name;
}