I have a form with 80 checkboxes.. Its a options form for car.. For example
Colour: black , red , white , yellow etc.. How should i design my database for many options?
should i create 80 column in table? or use implode() and save in a one column or multiple rows? but when i need i should update it…
Car_id | black | red | white | yellow |..... | option80 |
1 true true
how should i do ? Thank you for your help
Check out normalization. That might help.
Anyway, to help you get on your way, here’s a basic setup for that.
This makes sure you have a link table between CAR and COLOR
Hope this was helpful