Web Analytics
 Membuat JSON API PHP

Membuat JSON API PHP


<?php
header('Content-Type: application/json');
$koneksi = mysqli_connect("localhost", "username", "password", "database");


$q = mysqli_query($koneksi, "query");

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

echo json_encode($data) ;


Lanjut Part : 1
Jam : 17:21:51
Durasi Part : 0:0:1
Durasi Total : 0:0:1

Punya Pertanyaan , Silahkan Whatsapp Langsung
Muhammad Ullil Fahri
WA : 089696380422
Tautan WA : https://wa.me/message/SG4YA2XQP5FPE1
Theme Customizer

Theme Styles