Hi! How can I insert an empty row into dropdown before adding array from query? Sometimes I need to insert rows with NULL fields into db.
2 Answers
Add ":;" before value of dropdown options.
for e.g.
$str = $g->get_dropdown_values("select note as k, note as v from invheader");
$col["editoptions"] = array("value"=>":;".$str);
For null entry,
If db fields allows null and we want to save (NULL) instead of "". Defaults to false
$col["isnull"] = true;
These changes are available in updated build.
Your Answer