Welcome Guest, Not a member yet? Register   Sign In
Inserting For each?
#6

[eluser]Dizza[/eluser]
Ooow sorry, i dont think i explained myself well Tongue BUT THANKS Tongue

I meant that for each student i need to insert a query. The problem that i have is when i submit my form it will only update
the first student in my form and not the other students which i get from my foreach loop in my view.

So i wanted to know if there is a way to submit the form multiple times so each student is being update.

If i submit my form now it will only submit the first one like this
Code:
INSERT INTO `aanwezigheid` (`llID`, `lesuurID`, `aanwezig`) VALUES ('8', '2', 'niet aanwezig' )
but it should submit also the id of the other students with the aanwezig status Tongue

OR is it possible to use the form_dropdown you gave and submit it for each student?

BTW i will use your dropdown anyways because its way cleaner Tongue thanks!


Messages In This Thread
Inserting For each? - by El Forum - 06-11-2012, 07:15 AM
Inserting For each? - by El Forum - 06-11-2012, 10:18 AM
Inserting For each? - by El Forum - 06-11-2012, 10:35 AM
Inserting For each? - by El Forum - 06-11-2012, 10:40 AM
Inserting For each? - by El Forum - 06-11-2012, 10:49 AM
Inserting For each? - by El Forum - 06-11-2012, 10:58 AM
Inserting For each? - by El Forum - 06-11-2012, 11:03 AM
Inserting For each? - by El Forum - 06-11-2012, 11:07 AM
Inserting For each? - by El Forum - 06-11-2012, 12:08 PM
Inserting For each? - by El Forum - 06-11-2012, 12:14 PM
Inserting For each? - by El Forum - 06-11-2012, 12:42 PM
Inserting For each? - by El Forum - 06-11-2012, 01:03 PM
Inserting For each? - by El Forum - 06-11-2012, 01:24 PM
Inserting For each? - by El Forum - 06-11-2012, 01:31 PM
Inserting For each? - by El Forum - 06-11-2012, 02:06 PM
Inserting For each? - by El Forum - 06-11-2012, 02:45 PM
Inserting For each? - by El Forum - 06-11-2012, 03:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB