diff --git a/html/laender.php b/html/laender.php index 0f09f3e..6a6bf05 100644 --- a/html/laender.php +++ b/html/laender.php @@ -18,8 +18,7 @@ if(isset($_GET['land'])){ $sql = "SELECT scans.id, place, amount, deaths, active, cured, time FROM `data` inner join scans on scans.id=data.scan WHERE place = ? group by amount order by time asc "; //$sql = "SELECT scans.id, place, amount, deaths, active, cured, time FROM `data` inner join scans on scans.id=data.scan WHERE place like ? group by amount order by time desc "; $stmt = $pdo->prepare($sql); - $like = "%".trim($_GET['land'])."%"; - $stmt->bindParam(1, $like); + $stmt->bindParam(1, $_GET['land']); $stmt->execute(); $data = $stmt->fetchAll(PDO::FETCH_ASSOC); echo '