Update ambil.php
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user