I'm running a website aimed for medical students, I have a profile and points for every student in my database, So when they participate in an activity I must add X amount of points for all the participants, and I do this manually using an ajax form, How can I run a MySQL query to give X amount of points for each student in a large text input (textarea)? So I can insert the points all at once which is much easier and faster, Here is an example:
21910431,1,Participant
22010431,3,Subleader
21810531,6,Headleader
(Student ID),(points),(role in activity)
How can I insert this into the database all at once? every student in users
table is identified through the (Student ID).
Please help with a reliable way, Thank you!!