From f0b4b8dfffcb6ef91f0d8d0737a1668f1c0bede9 Mon Sep 17 00:00:00 2001 From: Goeran Heinemann Date: Wed, 18 Mar 2020 18:56:43 +0100 Subject: [PATCH] =?UTF-8?q?andere=20daten=20f=C3=BCr=20bundesl=C3=A4nder?= =?UTF-8?q?=20zeigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/index.php b/html/index.php index ed46408..81f6354 100644 --- a/html/index.php +++ b/html/index.php @@ -19,7 +19,7 @@ $data = $pdo->query($sql)->fetchAll(PDO::FETCH_ASSOC)[0]; echo '

Insgesammt hat das Coronavirus '.$data['total'].' Menschen infiziert. Von dieser Zahl sind noch '.$data['active'].' Fälle offen. Von den restlichen sind '.$data['cured'].' geheilt und '.$data['dead'].' gestorben. Das entspricht einer theorethischen leathalität von '.number_format(intval($data['dead'])/intval($data['cured'])*100, 4).'%, wenn man die Dunkelziffer der Infektionen ausser acht lässt.

'; //grafik -$sql = "SELECT scans.id, place, amount, time FROM `data` inner join scans on scans.id=data.scan WHERE place like 'Germany.' group by amount order by time asc "; +$sql = "SELECT scans.id, place, amount, time FROM `data` inner join scans on scans.id=data.scan WHERE place like 'Deutschland.' group by amount order by time asc "; $stmt = $pdo->query($sql); $data = $stmt->fetchAll(PDO::FETCH_ASSOC); ?>