I am doing something for my job and I can't solve the problem.
I have created 3 tables:
1. employees - 2 fields (id, name)
2. function - 2 fields (id, function) - 3 entires (director (id.no. 1), manager (id.no. 2), worker (id.no. 3))
3. results - 2 fields (id_employees, id_function)
On page you can from dropdown menu select employees and then on forms you can find checkboxes (functions). You are allowed to check multiple checkboxes.
For every checked checkboxes I need to insert in table results new row.
Explaination:
Select from dropdown menu employee: John Cash
Multiple checkbox: director, manager
Results in results table:
id_employees | id_function
2 | 1
2 | 3
I just hope that you have understand me and you will help me, couse I'm totaly lost 🙁