📅  最后修改于: 2022-03-11 14:54:06.940000             🧑  作者: Mango
0)
{
while($row = mysqli_fetch_array($result))
{
$output .= '
'.$row["title"].'
'.$row["details"].'
';
}
}
else{
$output .= 'No Noti Found ';
}
$status_query = "SELECT * FROM comments WHERE comment_status=0";
$result_query = mysqli_query($con, $status_query);
$count = mysqli_num_rows($result_query);
$data = array(
'notification' => $output,
'unseen_notification' => $count
);
echo json_encode($data);
}
?>