2024-10-16 19:18:52 +05:30
|
|
|
<?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)) {
|
|
|
|
|
2024-11-02 18:03:13 +05:30
|
|
|
die(mysqli_error($conn));
|
2024-10-16 19:18:52 +05:30
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|