$sonuc =mysql_query("SELECT id, ad, hit FROM yazilar ORDER BY hit DESC LIMIT 5");
while(
$satir = mysql_fetch_assoc($sonuc)){
$link =
$satir['hit'];
//echo $satir['id']; //yazı idi
//echo $satir['ad']; //yazı adı
}

echo '<a href="index.php?git='.$link.'">Hit</a>';


mantık

kod detaylı olsa arkadaşlar detaylı yardım ederdi sen neye göre link vermek istiyorsun oda var