Welcome Guest, Not a member yet? Register   Sign In
Help modeling assignments
#3

[eluser]Dam1an[/eluser]
Jedd is pretty much spot on
Also, seeing as this will be abstracted in a model, it doesn't matter is it is hard (which I don't think it is), as you could pass in an array of user IDs and loop through them doing each insert, or a comma seperated string, explode it and loop through etc

And if you're using MySQL, you can even do multiple inserts in a single query, so it's no extra queries, syntax is something like
Code:
INSERT INTO `assignment` (`task_id`, `member_id`) VALUE (30, 1), (30, 4), (30, 8)


Messages In This Thread
Help modeling assignments - by El Forum - 08-16-2009, 04:44 PM
Help modeling assignments - by El Forum - 08-16-2009, 05:00 PM
Help modeling assignments - by El Forum - 08-16-2009, 05:04 PM
Help modeling assignments - by El Forum - 08-17-2009, 07:55 PM
Help modeling assignments - by El Forum - 08-17-2009, 08:02 PM
Help modeling assignments - by El Forum - 08-17-2009, 08:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB