Welcome Guest, Not a member yet? Register   Sign In
Update multiple rows in a table
#4

[eluser]Mellis[/eluser]
Hi,

This is how I would do it:
In your view: You name your input checkboxes 'id_'.$id
In your controller: for each selected checkbox you explode the post key and do the update with the $exploded[1] value.

Greetings,

Mellis


Messages In This Thread
Update multiple rows in a table - by El Forum - 08-19-2008, 01:41 AM
Update multiple rows in a table - by El Forum - 08-19-2008, 01:45 AM
Update multiple rows in a table - by El Forum - 08-19-2008, 01:56 AM
Update multiple rows in a table - by El Forum - 08-19-2008, 02:52 AM
Update multiple rows in a table - by El Forum - 08-19-2008, 03:21 AM
Update multiple rows in a table - by El Forum - 08-19-2008, 04:07 AM
Update multiple rows in a table - by El Forum - 08-19-2008, 04:32 AM
Update multiple rows in a table - by El Forum - 08-19-2008, 05:14 AM
Update multiple rows in a table - by El Forum - 08-19-2008, 07:31 AM
Update multiple rows in a table - by El Forum - 08-19-2008, 07:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB