query($sql); $data = $qry->fetchAll()[0]; if($_GET['cek_rm'] == $data['NOMR']){ echo " No Mr "; }else{ ?> No MR tidak Terdaftar