api rudimentär
This commit is contained in:
parent
42d863bc29
commit
a055baf104
9
html/api/index.php
Normal file
9
html/api/index.php
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?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'];
|
Loading…
Reference in New Issue
Block a user