initial commit pemetaan kemiskinan
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
include "../config/koneksi.php";
|
||||
|
||||
$result = mysqli_query($conn, "
|
||||
SELECT b.*, k.nama
|
||||
FROM bantuan b
|
||||
JOIN keluarga_miskin k ON b.keluarga_id = k.id
|
||||
ORDER BY b.tanggal DESC
|
||||
");
|
||||
|
||||
$data = [];
|
||||
|
||||
while($row = mysqli_fetch_assoc($result)){
|
||||
$data[] = $row;
|
||||
}
|
||||
|
||||
echo json_encode($data);
|
||||
?>
|
||||
Reference in New Issue
Block a user