This commit is contained in:
Göran Heinemann 2020-03-18 23:10:19 +01:00
parent c96644c075
commit c2897357cc

View File

@ -15,7 +15,7 @@
include "../config.php"; include "../config.php";
if(isset($_GET['land'])){ 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 like ? 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 = ? 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 "; //$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); $stmt = $pdo->prepare($sql);
$like = "%".trim($_GET['land'])."%"; $like = "%".trim($_GET['land'])."%";