Compare commits
No commits in common. "d4911399f16486db8562f7691765f98c97713b10" and "414a17a6ff79f37537a7b8848a6cc9b05c17e2d0" have entirely different histories.
d4911399f1
...
414a17a6ff
@ -1,9 +0,0 @@
|
|||||||
<?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