Çalışmayan nedir hocam hata mı veriyor sonuç ne ekrana ne basıyo ?
Şu şekilde deneyiniz birde;

error_reporting(E_ALL);
include('baglan.php');

$sorgum=mysql_query("select * from tag2 order by id asc limit 0,10") or die(mysql_error());
$top_string="";
while($son = mysql_fetch_array($sorgum)){
    $top_string .= $son['baslik'].",";
}
echo trim($top_string,',');