This topic is locked

Writing a NULL value to Database

7/8/2014 11:23:07 PM
PHPRunner General questions
G
gkearns author

Is there a way to write a NULL value to a field in a MySQL table? I have tried putting code in the BeforeEdit event, but I can't seem to get a NULL into the database table. This code:
$values["field1"] = NULL;
will still write an empty string into the field - not a NULL. Is there something I am missing?

N
nti 7/9/2014

setup NULL value in the DB... as default field.