JSON MYSQL DAN PHP

<?php
header('Content-Type: application/json');
include "koneksi.php" ;

$query = mysqli_query($kon,"SELECT * FROM member") ;


while ($t = mysqli_fetch_array($query)) {
    $data[] = $t ;
}

echo json_encode($data,JSON_PRETTY_PRINT) ;

?>





 881 total views

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *