Databridge2 update of checkbox does not work
I am struggling to get my code to work to update a checkbox. The status of the checkbox is stored in the database field 'Good_exam1_p' as either 1 or a 0.
My form input code:
<input <?php if (!(strcmp($RS_Test2->getColumnVal("Good_exam1_p"),1))) {echo "checked=\"checked\"";} ?> name="answers_tick" type="checkbox" id="answers_tick" value="<?php echo $RS_Test2->getColumnVal("Good_exam1_p"); ?>">
The Databridge2 update code:
$UpdateQuery->bindColumn("Good_exam1_p", "c", "".((isset($_POST["answers_tick"]))?$_POST["answers_tick"]:"") ."", "WA_ZERO");
The php file was previously attached as edit_list_ext.php.
Your help will be appreciated.
WIllem