<?php
require 'header.php';
require 'dbconnect.php';



$sql = 'SELECT * FROM sysuser ';
$data = array();
$name = array();

if($result = mysqli_query($conn, $sql))
{
    //echo $result;
    $cr = 0;
    while($row = mysqli_fetch_assoc($result))
    {
        $data[$cr]['UserID'] = $row['UserID'];
        $data[$cr]['strUser'] = $row['strUser'];
        $data[$cr]['strLocation'] = $row['strLocation'];
        $data[$cr]['strEmail'] = $row['strEmail'];
        $data[$cr]['strTel'] = $row['strTel'];
        $data[$cr]['dtLastEdit'] = $row['dtLastEdit'];
        $cr++;
    }
  echo json_encode($data);
}
else{
    echo('failed');
}


?>