sars-scanner/html/api/index.php
2020-03-17 08:00:53 +01:00

9 lines
245 B
PHP

<?php
include "../../config.php";
$sql = "SELECT content FROM scans where id=(SELECT max(id) FROM scans where site=7)";
$stmt = $pdo->query($sql);
header('Content-type: application/json');
echo $stmt->fetchAll(PDO::FETCH_ASSOC)[0]['content'];