Update ambil.php

This commit is contained in:
2026-06-09 12:15:38 +00:00
parent 8227fa7d90
commit aa9474e861
+7 -7
View File
@@ -1,4 +1,11 @@
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
header('Content-Type: application/json; charset=UTF-8');
include 'auth.php'; // Middleware auth
include 'koneksi.php';
echo "<pre>";
echo "DATABASE SERVER\n";
@@ -10,13 +17,6 @@ while($r = mysqli_fetch_assoc($q)){
exit;
error_reporting(E_ALL);
ini_set('display_errors', 1);
header('Content-Type: application/json; charset=UTF-8');
include 'auth.php'; // Middleware auth
include 'koneksi.php';
if (!$conn) {
echo json_encode(array("status" => "error", "message" => "Gagal konek DB"));
exit;