I have a mysql float column, which is optional and is defined as "float default NULL" in mysql. In php, I have an update query that updates the DB from form fields. If the float field value on the form is deleted(empty), mysql stores the float column as 0 (zero) in the DB.
I have tried setting the value in the update statement to NULL (php) and the empty string "". However, both produce the same result, which is a 0 in the DB.
What am I missing???