Quick mySQL query - blank date on update
I have an update page that includes a couple of date fields that often won't need to be used.
When the form updates, the value '30 November -0001' is being written to the database.
How can I stop this, so that it doesn't enter anything?
In the database in phpMyAdmin, I have the field as a Date field, allowing NULL, and a default value of NULL.