Initial Commit

This commit is contained in:
Kilian Kurt Hofmann
2024-04-26 11:21:08 +02:00
commit 3f82c916ea
4 changed files with 38 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);
?>