I have a problem with solving a programming point.
I tried to solve it in many ways but I couldn’t
I have a system that each teacher has his username and password
Inside his profile he need to choose some students to make some groups lets say they a group for students who take mathematical language, to this point I have no problem
The problem is when I select all the students by using while loop and they displayed in the page, each student has a tick mark beside it to let the instructor select his name,
The number of students to be viewed is unknown, but it's viewed from database. Now, the instructor is checking the entire student he wants, by clicking a button the data should be save as all the group he checked, I really don’t know how to ask this, I'll try, How the check box for each student link with the student database to let me save it in other table, in other way, the select is retrieve the data and cant be linked with the new created check box. ( how can the check box know that this check is for that student)
This problem is confusing me, and I don’t know if there is a solving for it