tamam sonunda buldum :d
<?php
include("baglanti.php");
$sec="select * from kullanici";
$sonuc=$baglan->query($sec);
if($sonuc->num_rows>0)
{
//verileri listele
while($cek=$sonuc->fetch_assoc())
{
$id=$cek["id"];
$adi=$cek["adi"];
echo $id."-".$adi."<br>";
}
}
else
{
echo "veri bulunamadı";
}
?>doğrusu bu hepinize yanıtları için teşekkür ederim