I’ve got a new website moved to my server. This website uses PHP and MySQL, and is built very poorly.
The problem is – it needs non-null values inserted into new records where ever I don’t specify a value, though the default value is null.
I’ve been told it has been done on the previous server, but they have no idea how. I’d be glad to receive some help on this.
You could update the default values of the fields of your database to prevent problems using:
More information on
ALTER TABLEfor specific fields and parameters can be found in the documentation.