$sql=$db->prepare("SELECT * FROM tablo WHERE hasta_id=?"); $sql->execute([$_GET["hasta_id"]]); $sonuclar=$sql->fetchAll(PDO::FETCH_ASSOC);