从数据库中选择数据而不刷新php中的页面

xnifntxz  于 2021-06-24  发布在  Mysql
关注(0)|答案(0)|浏览(242)


从数据库获取数据时,它发出警报 0000:00:00 在数据库中插入写入日期

<?php
  $query = "select * from Reply t1 inner join users t2 on t1.UserId = t2.UserId where comment = '$commentid'";
  $run1 = mysqli_query($mysqli,$query);
  $numberRows = mysqli_num_rows($run1);
  while($row1 = mysqli_fetch_array($run1))
  {
    $Reply = $row1['Reply'];
    $UserId = $row1['UserId'];
    $UserName = $row1['UserName'];

    $date1 = $row['Date'];
    echo "<script>alert('$date1')</script>";

    $ageDate1 = time_elapsed_string($date1);
    echo "<script>alert('$ageDate1')</script>";
?>

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题