Initial Commit

This commit is contained in:
Vinlio Andriarles
2026-06-02 13:15:29 +07:00
commit 3ebceba0b8
31 changed files with 2058 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
include "../../config/koneksi.php";
if(isset($_GET['id_penduduk'])) {
$id_penduduk = $_GET['id_penduduk'];
$query =
"SELECT tanggal_penyaluran, beras_kg, minyak_l, gula_kg, telur_kg, susu_kaleng, uang_tunai, catatan, created_at
FROM log_bantuan
WHERE id_penduduk = '$id_penduduk'
ORDER BY created_at DESC";
$result = mysqli_query($koneksi, $query);
$data = array();
if($result) {
while($row = mysqli_fetch_assoc($result)) {
$row['tanggal_penyaluran'] = date("d/m/Y", strtotime($row['tanggal_penyaluran']));
$data[] = $row;
}
}
echo json_encode($data);
}
?>