MySqli Insert record - checkbox
I have added a MySQLi Insert record behavior to my form.
If I submit the value of a form checkbox as Checkbox 1,0 when creating the column bindings, when i try and insert a record i get the following error...
Undefined fieldtype c (parameter 5)
the code generated by the server behavior is as follows...
$InsertQuery->bindColumn("AllDayEvent", "c", "".((isset($_POST["chkallday"]))?$_POST["chkallday"]:"") ."", "WA_ZERO");
If I submit the value as integer, the code works fine