$Bugun = '%'.date('Y-m-d').'%';
$Sorgu = mysql_query("SELECT COUNT( * ) AS sayi, ip FROM ziyaretci WHERE zaman LIKE '$Bugun' GROUP BY ip ORDER BY sayi DESC");

while($X = mysql_fetch_array($Sorgu)){
if($X[0] > 2) echo $X[1].' ip adresi '.$X[0].' kez kayıtlı.';
}