conditional formatting html table in php with time stamp comparison

后端 未结 3 1576
梦如初夏
梦如初夏 2021-01-28 03:03
echo \'\';
echo \'\'; 
echo \'\';
echo \'
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-28 03:40

    $NowDT = date("Y-m-d H:i:s");
    $NowRDT = strtotime($NowDT);
    $DateTimeNF = $row['TimeStamp'];
    $TimeRF = strtotime($DateTimeNF);
    $TimeDifference = $NowRDT - $TimeRF;
    $TimeDifferenceHours = $TimeDifference/3600;
    If ($TimeDifferenceHours > "1") 
    {
    echo '
OrderDestinationLocation
'; } else { echo '
'; }

提交回复
热议问题