Skip to content
Snippets Groups Projects
Commit 3e033122 authored by Lucky's avatar Lucky
Browse files

add webservice_rekomendasi

parent 1f81d2a1
No related merge requests found
Pipeline #2898 skipped
<?php
require_once 'connectdb.php';
$conn = connect_database();
$qry = "SELECT * FROM rekomendasi";
$res = mysqli_query($conn,$qry);
$results = array();
while ($result = $res->fetch_assoc()){
$results[] = $result;
}
header('Content-type: application/json');
mysqli_close($conn);
echo json_encode($results);
?>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment