从数据库获取数据时,它发出警报 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>";
?>
暂无答案!
目前还没有任何答案,快来回答吧!