Initial commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
require 'db.php';
|
||||
|
||||
$sql = "SELECT * FROM SPBU";
|
||||
$stmt = $pdo->query($sql);
|
||||
$results = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode($results);
|
||||
?>
|
||||
Reference in New Issue
Block a user