Welcome Guest, Not a member yet? Register   Sign In
Multiple entry update and delete form
#8

[eluser]Bart Mebane[/eluser]
Ok. One more thing to check: In your original post, part of your model code was
Code:
$update_data = array(
                    'team_name' => $this->input->post('team[$i]'),
                    'owner1' => $this->input->post('owner1[$i]'),
                    'owner2' => $this->input->post('owner2[$i]'),
                    'owner3' => $this->input->post('owner3[$i]')
                 );
That won't work, since php won't parse the variable name $i unless it's in a double-quoted string, like this:
Code:
$update_data = array(
                    'team_name' => $this->input->post("team[$i]"),
                    'owner1' => $this->input->post("owner1[$i]"),
                    'owner2' => $this->input->post("owner2[$i]"),
                    'owner3' => $this->input->post("owner3[$i]")
                 );
That part of the code, if you used what I posted earlier, would now be in the controller. Please check to be sure that you have double quotes around all the strings where you want the variables to be evaluated.


Messages In This Thread
Multiple entry update and delete form - by El Forum - 11-28-2010, 08:40 AM
Multiple entry update and delete form - by El Forum - 11-28-2010, 12:04 PM
Multiple entry update and delete form - by El Forum - 11-29-2010, 06:54 AM
Multiple entry update and delete form - by El Forum - 11-29-2010, 07:53 AM
Multiple entry update and delete form - by El Forum - 11-29-2010, 08:31 AM
Multiple entry update and delete form - by El Forum - 11-29-2010, 12:04 PM
Multiple entry update and delete form - by El Forum - 11-29-2010, 01:04 PM
Multiple entry update and delete form - by El Forum - 11-29-2010, 03:21 PM
Multiple entry update and delete form - by El Forum - 11-29-2010, 04:17 PM
Multiple entry update and delete form - by El Forum - 11-29-2010, 04:29 PM
Multiple entry update and delete form - by El Forum - 11-29-2010, 04:33 PM
Multiple entry update and delete form - by El Forum - 11-29-2010, 04:39 PM
Multiple entry update and delete form - by El Forum - 11-29-2010, 04:54 PM
Multiple entry update and delete form - by El Forum - 11-29-2010, 05:02 PM
Multiple entry update and delete form - by El Forum - 11-29-2010, 05:10 PM
Multiple entry update and delete form - by El Forum - 11-29-2010, 05:22 PM
Multiple entry update and delete form - by El Forum - 11-29-2010, 05:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB