数据库:
DAlanding int(11) Ja NULL
$DAlanding = $_POST['DAlanding '];
if ($DAlanding =="")
{
$DAlanding =NULL;
}
$sql = "INSERT INTO cardex (DAlanding) VALUES('$DAlanding')";
但现在我需要它来约会:
DAdate 日期 Ja NULL
$DAdate = $_POST['DAdate '];
if ($DAdate =="")
{
$DAdate = 'NULL';
}
$sql = "INSERT INTO cardex (DAdate) VALUES('$DAdate')";