how to send 'bit' type data from HTML form to the database.
can we convert it into boolean or something like that. I have tried using type='number' and it didn't work. I get this error:
... SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'active' at row 1 (SQL: insert into pg_vendor ...
here column active is of datatype bit which is either 0 or 1.
I've also used boolean, text, number type and it didn't work.
I'm using Laravel Thanks
$('#the_form').submit(function(){/*grab value and convert here*/});