I have an app that I am building and I have to save settings for some of the pages. I've decided to save it in mysql in binary data format. I got a lot of checkboxes. So let's say i have this kind of form
<form>
<input type="text" value="some text" id="text">
<input type="checkbox" name="checkboxes1">
<input type="checkbox" name="checkboxes2">
<input type="checkbox" name="checkboxes3">
</form>
I have 10 pages that have settings page similar to this one. I think that I can write this data into mysql database in the form of binary data. Lets say the first one and the lest one are selected so I write in mysql 101
. What kind of data type to choose BLOB
, VARCHAR
or something else?