<?php include_once "../database.php"; header('Content-type: application/json'); //print_r(retrieve_agency()); echo json_encode(retrieve_agency());
<?php include_once "../database.php"; $agency = retrieve_agency(); if (isset($_POST['search'])) { $search = search_agency($_POST["search-box"]); } ?> <html> <head><title>PH directory - Agency</title></head> <link rel="stylesheet" type="text/css" href="../assets/style.css"> <body> <form method="post" class="form-inline"> <div class="form-group"> <input type="text" id="search-box" name="search-box" placeholder="search" class="form-control"> <input type="submit" value="search" name="search" class="btn btn-primary form-control"> </div> </form> <table class="table" id="agency-table"> <thead> <tr> <td>Agency No.</td> <td>Agency Name</td> <td>Email</td> <td>Phone No.</td> <td>info</td> <td>Address</td> <td>Region</td> <td>Status</td> <td></td>