Compare commits

...

2 Commits

Author SHA1 Message Date
d4911399f1 parse als ausführbar markiert 2020-03-06 13:12:51 +01:00
b2a09cd7fa status der worldometer daten 2020-03-06 13:12:31 +01:00
2 changed files with 9 additions and 0 deletions

0
parse.php Normal file → Executable file
View File

9
status.php Normal file
View File

@ -0,0 +1,9 @@
<?php
include 'config.php';
$sql = "SELECT data.id, place, amount FROM `data` INNER JOIN scans on scans.id=data.scan INNER JOIN sites on sites.id=scans.site WHERE sites.id=2 ORDER BY amount DESC";
echo '<table>';
foreach ($pdo->query($sql) as $row){
echo '<tr><td>'.$row['id'].'</td><td>'.$row['place'].'</td><td>'.$row['amount'].'</td></tr>';
}
echo '<table>';