$sorgu = $db->prepare("SELECT * FROM spor where tarih = :p_tarih && evsahibi = :p_ev_sahibi && misafir = :p_misafir");
$sorgu->bindParam(':p_tarih', $tarih);
$sorgu->bindParam(':p_ev_sahibi', $evsahibi);
$sorgu->bindParam(':p_misafir', $misafir);
 $sorgu->execute()
$sonuc = $sorgu->fetchAll();
$say = rowCount($sonuc);
if($say > 0) {}