$ipcek=$db->query("select * from kullanicilar where ip!=' ' ")->fetchAll(PDO::FETCH_ASSOC);
foreach($ipcek as $ipgoster){

$ipgoster['kullanici_adi'];

}