$sql = mysql_query("SELECT * FROM honor ORDER by sorting desc");
$count = 0;
while($row = mysql_fetch_array($sql)){
if($count == 0) $class = 'selected'; else $class = '';
$hon_list .= '
'.$row['name'].'';
if($row['photo']) $img = '
'; else $img ='';
$hon_detail .= '
'.$img.'
';
$count++;
}
?>
echo $hon_detail;
?>