$sorgu=mysql_query("SELECT * From kat"); while ($row = mysql_fetch_object($sorgu)) { $kat_adi=$row->adi; echo("<br>$kat_adi"); }