📜  如何使用 php 和 mysq 构建 jquery 消息通知 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:30.075000             🧑  作者: Mango

代码示例3
 0)
{

while($row = mysqli_fetch_array($result))

{

  $output .= '
  
  •      '.$row["comment_subject"].'
      '.$row["comment_text"].'   
      
  •   '; } } 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); } ?>