I need to develop a system where I capture the selected data from a checkbox
and insert everything into a array
, I believe this is the most appropriate method to store, and then send it to the database, and time to retrieve the data from the database would like to simply search for one of the values in the array.
For example I have 3 combobox, one written question 1, question 2 and question 3, if I just select question 1 and 2, this would be written to the database, and at the time of retrieving the result via SELECT I just put SELECT * FROM tabela WHERE pergunta='pergunta1'
, and this would return the result where question 1 is inside the stored array