I have a list of checkboxes, and it is always growing, so for example..
<li><input type="checkbox" value="19384">Nutrition</li>
<li><input type="checkbox" value="22450">Weight Loss</li>
<li><input type="checkbox" value="98957">Fitness</li>
<li><input type="checkbox" value="34916">Lifestyle</li>
let's say I check Nutrition and Fitness, what is the best database schema/structure to save the checked ones so that I can retrieve it later?
The main problem is that these checkboxes are always increasing in number, so these four tomorrow can go up to 7 checkboxes or 10, and will always increase so I can't setup in database a specific amount of tables for each checkbox value.
I can't understand how I would upload the checked ones to database, and then retrieve them later?
Is it possible for me to upload the values to MySQL of each selected and then when retrieving them I'd have to check between the list and match with the ones that have been uploaded to MySQL and then if so use the checked="yes"
in the input? I'm using PHP as well.