kein like

This commit is contained in:
Göran Heinemann 2020-03-18 23:11:43 +01:00
parent c2897357cc
commit b85a412318

View File

@ -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 '<table style="width: 100%">';