Compare commits
2 Commits
414a17a6ff
...
d4911399f1
Author | SHA1 | Date | |
---|---|---|---|
d4911399f1 | |||
b2a09cd7fa |
9
status.php
Normal file
9
status.php
Normal 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>';
|
Loading…
Reference in New Issue
Block a user