diff --git a/html/index.php b/html/index.php
index b376692..bc7e65e 100644
--- a/html/index.php
+++ b/html/index.php
@@ -13,6 +13,11 @@
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 ";
$stmt = $pdo->query($sql);
@@ -114,7 +119,7 @@ echo '';
echo 'Platz | Land | kumulative Fallzahl |
';
$i = 1;
foreach ($pdo->query($sql) as $row){
- echo ''.$i.' | '.str_replace("D-", "", $row['place']).' | '.$row['amount'].' |
';
+ echo ''.$i.' | '.str_replace("D-", "", $row['place']).' | '.$row['amount'].' |
';
$i++;
}
echo '
';
@@ -218,7 +223,7 @@ echo '';
echo 'Platz | Land | Aktive Fälle | kumulative Fallzahl | geheilte | Todesfälle |
';
$i = 1;
foreach ($pdo->query($sql) as $row){
- echo ''.$i.' | '.$row['place'].' | '.$row['active'].' | '.$row['amount'].' | '.$row['cured'].' | '.$row['deaths'].' |
';
+ echo ''.$i.' | '.$row['place'].' | '.$row['active'].' | '.$row['amount'].' | '.$row['cured'].' | '.$row['deaths'].' |
';
$i++;
}
echo '
';