debug: check users

This commit is contained in:
2026-06-10 22:55:29 +07:00
parent e107eed06b
commit ebf0ae8bd1
+13
View File
@@ -0,0 +1,13 @@
<?php
require 'koneksi.php';
$result = mysqli_query($conn, "SELECT id, username, role FROM pengguna");
$data = [];
while ($row = mysqli_fetch_assoc($result)) {
$data[] = $row;
}
header('Content-Type: application/json');
echo json_encode($data, JSON_PRETTY_PRINT);