$sorgu = mysql_query("select baslik from icerik");
$no = 1;
while($veri  = mysql_fetch_assoc($sorgu)){

echo $no." - ".$veri["baslik"];

$no++;

}