I am inserting date. It works when date is set, otherwise, it doesn't work.
DateBirth type is date and its default value is NULL.
Here is my php
$date_birth = isset($_POST['date_birth']) ? $_POST['date_birth'] : NULL;
Here is mysql
$adding_birth = "INSERT INTO person (DateBirth) VALUES ('$date_birth')";
How can I get date field in null?