39 lines
640 B
PHP
39 lines
640 B
PHP
<?php
|
|
include ('includes/config/config.php');
|
|
include ('includes/auth/auth.php');
|
|
include ('includes/functions.php');
|
|
error_reporting(E_ERROR | E_PARSE);
|
|
|
|
$data=array();
|
|
$sql_hygiene_parameter="select * from hygiene ";
|
|
|
|
|
|
if (!$resultList = @mysqli_query($conn,$sql_hygiene_parameter)) {
|
|
|
|
exit(mysqli_error($conn));
|
|
echo json_encode("FAILURE");
|
|
}
|
|
else if(mysqli_num_rows($resultList) > 0) {
|
|
|
|
while ($row = mysqli_fetch_assoc($resultList)) {
|
|
$data[]=$row;
|
|
}
|
|
|
|
}
|
|
else
|
|
{
|
|
|
|
$data['status'] = 200;
|
|
$data['message'] = "Data not found!";
|
|
}
|
|
|
|
echo json_encode($data);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|