prepare ("select * from site where username=:username and sifre=:sifre"); $islem -> execute(array("username" => $username , "sifre" => $sifre)); $islem2 = $islem -> fetch(PDO::FETCH_ASSOC); if($islem2){ echo "giriş var"; } else { echo "hata var"; } ?>