tugas-pjpb/list.php

7 lines
228 B
PHP
Raw Normal View History

2022-12-12 17:32:27 +07:00
<?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);