11 lines
205 B
PHP
11 lines
205 B
PHP
|
<?php
|
||
|
$app = require '../../app/inc.php';
|
||
|
|
||
|
$sql = 'SELECT * FROM tidtabell';
|
||
|
$stmt = $app->database->conn->prepare($sql);
|
||
|
$stmt->execute();
|
||
|
|
||
|
|
||
|
$app->api([
|
||
|
"data" => $stmt->fetchAll(PDO::FETCH_ASSOC)
|
||
|
]);
|