下面是代码,如果$today日期与清除表中的$expirydate匹配,则尝试回显表中的数据
$today = date("Y-m-d");
$expirydate = $row->currentdate; //from database
$today_time = strtotime($today);
$expire_time = strtotime($expirydate);
if ($expire_time < $today_time) {
echo '(body....) ';https://stackoverflow.com/questions/71420913
复制相似问题