I think my problem is that currently I have something like this:
$value = trim(addslashes($_POST['myvalue']));
update customers set name="' . $value . '" where id=75;
If they put a space trim will take care of it and then I can do something like:
if (empty($value)) {
$value = null;
}
But then my query will be update customers set name= "null" ... and my db will think this is an entry and not NULL.