File structure

This commit is contained in:
Kilian Kurt Hofmann
2024-04-26 11:22:20 +02:00
parent 3f82c916ea
commit 8b41f907e2
2 changed files with 0 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
<?php
include_once 'database.php';
ini_set(display_errors, 1);
error_reporting(E_ALL);
$db = openConnection();
$query = "SELECT * FROM users";
$stmt = $db->prepare($query);
$stmt->execute();
$result = $stmt->fetch(PDO::FETCH_ASSOC);
echo json_encode($result);
?>