Hi,
think I am being really thick this morning but cannot get a boolean to insert or update.
PHP/Mysql.
I have a field in the DB that is a boolean. I have a form with a tickbox, value 1 for ticked, 0 for unticked.
Field on DB is default 0.
I try to do an insert with the tickbox checked (so value set to 1). Yet it doesnt insert 1 into the DB.
Equally I have an update form (same form basically), sets to 1, but update does not set to 1.
I have tried to set value to number as I believe it comes in as a string from the form, but setting to number makes no difference.
what am I doing wrong?
thanks