我喜欢比较日期(从数据库中提取空值(0000-00-00)。我尝试这样做:
$dateValue = $row_recordset3['ttDateEnvoiDEP'];
if ($dateValue === '0000-00-00') {
$dateEnvoiDEP = "CURRENT_DATE()";
}
else {
$returnOK .= $dateValue;
$dateEnvoiDEP = $row_recordset3['ttDateEnvoiDEP'];
}
但它不起作用,你知道为什么吗?