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
+14
View File
@@ -0,0 +1,14 @@
<?php
include "../../config/koneksi.php";
// Mengambil pelatihan yang masih aktif (belum melewati tanggal selesai)
$query = mysqli_query($koneksi, "SELECT * FROM master_pelatihan WHERE tanggal_selesai >= CURDATE() ORDER BY id DESC");
$data = [];
if($query){
while($row = mysqli_fetch_assoc($query)){
$data[] = $row;
}
}
header('Content-Type: application/json');
echo json_encode($data);
?>