How do I send boolean values with a checkbox
Please Help me. I guess it is simple, but not for me
I wish to use a checkbox to send two values :
value 1 if checked, and value 0 if unchecked
At the moment it sends the correct boolean value when the box is checked
But NOT when it is unchecked.
In that later case, the Update SQL sentence returns an error message saying
Incorrect syntax near the word WHERE
(Instead of UPDATE table1 SET oven=0 WHERE .....)
By the way, I wish to use boolean values in that column because I need to link it with another table, and that join does not respond to "Null" values.
Thank you in advance for you answer if you can, and happy Easter
|