Hi all,
I'm having this problem when inserting data from a POST var into MySql. Some columns in db have default NULL values. The insert query looks like this:
$Query = 'INSERT INTO table VALUES ("' . $_POST['field1'] . '","' . $_POST['field2'] . '")';
If $_POST['field1'] is empty (taken from a <input type="text" ...>) the value in the db isn't NULL, thus messing with my further code (isset checks). I want MySql to assign the default value NULL if the text field is empty.
Thanks for ideas