<?
$mysql = mysql_query("select * from table ORDER BT rand() DESC LIMIT 10");
while($w = mysql_fetch_array($mysql)) {
echo "<a href=".$w['kolon'].">".$w['kolonadi']."</a><br>";
}
?>
<?
$sorgu = mysql_query("SELECT * FROM tablo order by rand() limit 10");
while($res = mysql_fetch_array($sorgu))
{
$veri1 = $res['id'];
$veri2 = $res['ad'];
}
echo "<a href=\"http://www.siteadresi.com/index.php?indir=$veri1\">$veri2</a>";
?>