$query8 = @mysql_query("SELECT kat_id FROM urunler") OR die(mysql_error()); while($kats= @mysql_fetch_array($query8)){ echo $kats['kat_id']; }