kein like
This commit is contained in:
parent
c2897357cc
commit
b85a412318
@ -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%">';
|
||||
|
Loading…
Reference in New Issue
Block a user