callfi_api/get_requests.php
2024-06-20 23:34:56 +08:00

16 lines
272 B
PHP

<?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);
?>