$q = "SELECT * FROM tablo "; if ($_POST['combo1']){ $q.=" where tarih = '".$_POST['combo1']."'"; } sonra if -üniversite if - adı ... .. .