mirror of
https://github.com/gabrielkheisa/tugas-pjpb.git
synced 2024-11-25 21:13:14 +07:00
7 lines
228 B
PHP
7 lines
228 B
PHP
|
<?php
|
||
|
|
||
|
$connection = new mysqli("localhost","root","","validator");
|
||
|
$data = mysqli_query($connection, "select * from profil");
|
||
|
$data = mysqli_fetch_all($data, MYSQLI_ASSOC);
|
||
|
|
||
|
echo json_encode($data);
|