This commit is contained in:
root
2024-06-20 23:34:56 +08:00
commit 6281abdc5e
20 changed files with 470 additions and 0 deletions

16
get_requests.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
include('connection.php');
$conn = OpenCon();
$selectSql = "SELECT * FROM Requests WHERE status =0";
$selectQuery = mysqli_query($conn, $selectSql);
$arr = [];
while($row=mysqli_fetch_assoc($selectQuery)){
array_push($arr,$row);
}
echo json_encode($arr);
?>