Hi there.
I have a mysql db with a table cars (id, name), equipment (id, desc) and car_equip (id, id_car, id_equip). For each car, user can select several extras, by checking the chosen checkboxes. Later, the user might want to change some data.
I want, when clicking on some edit button, the extras popup to bring all the extras chosen before, already checked.
I supose I can use something like this:
" />
where $_POST[“extra_value”] comes for a db query. I will select the extras from car_equip for a particular car.
My problem is, the extras list are too long. How can I do this, with a loop for example? I don’t want to change code whenever some extra is added or deleted.
Sorry the long post. I don’t figure how can I explain this better…
Thanks in advance. Regards,
Escar