From 01b6de5e6fbd26a6c3a421eb6eff9b73e38628df Mon Sep 17 00:00:00 2001 From: "Jakub (james) K" Date: Tue, 22 Oct 2024 15:14:07 +0200 Subject: [PATCH] commit --- get1.php | 16 ---------------- index.html | 20 ++------------------ 2 files changed, 2 insertions(+), 34 deletions(-) delete mode 100644 get1.php diff --git a/get1.php b/get1.php deleted file mode 100644 index 5b384a7..0000000 --- a/get1.php +++ /dev/null @@ -1,16 +0,0 @@ -query($sql); - -$roles = []; -if ($result->num_rows > 0) { - while ($row = $result->fetch_assoc()) { - $roles[] = $row; - } -} - -header('Content-Type: application/json'); -echo json_encode($roles); -$conn->close(); -?> diff --git a/index.html b/index.html index c76a8c7..159054e 100644 --- a/index.html +++ b/index.html @@ -20,24 +20,6 @@ }