first commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
include "koneksi.php";
|
||||
$rumah_id = intval($_GET['rumah_id'] ?? 0);
|
||||
$sql = "SELECT * FROM tb_bantuan_history WHERE rumah_id=$rumah_id ORDER BY tanggal DESC LIMIT 20";
|
||||
$result = $conn->query($sql);
|
||||
$data = [];
|
||||
if ($result) { while ($row = $result->fetch_assoc()) { $data[] = $row; } }
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode($data);
|
||||
?>
|
||||
Reference in New Issue
Block a user