可以试试这样,就不报错了。$sql = "insert into News (title,createtime,audittime,content,released) value ('".$title."','".$createtime."',NULL,'".$content."','".$released."')";