tugas-pjpb/list.php
2022-12-12 16:44:21 +07:00

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);