2022-12-09 04:51:56 +00:00
|
|
|
<?php
|
|
|
|
session_start();
|
|
|
|
require_once 'config.php';
|
|
|
|
header('Content-Type: application/json');
|
|
|
|
|
|
|
|
if (isset($_SESSION["username"]))
|
|
|
|
{
|
|
|
|
$conn = dbConn();
|
2022-12-15 14:50:58 +00:00
|
|
|
$stmt = $conn->prepare("SELECT People_ID, People_name, People_licence FROM People");
|
2022-12-09 04:51:56 +00:00
|
|
|
$stmt->execute();
|
|
|
|
$result = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
|
|
|
echo json_encode(array("message" => "ok", "owners" => $result));
|
|
|
|
}
|