Welcome Guest, Not a member yet? Register   Sign In
How to insert multidimensional input array using Active Records?
#4

[eluser]Matthieu Fauveau[/eluser]
There is no equivalent code that I'm aware of.
I believe you should do it like that instead :

Code:
function insert_list($i)
{
$fullname = $this->input->post('fullname');
$job_title = $this->input->post('job_title');

$data = array(
    'fullname' => $fullname[$i],
    'job' => $job_title[$i]
);

$this->db->insert('my_table',$data);
}


Messages In This Thread
How to insert multidimensional input array using Active Records? - by El Forum - 12-25-2008, 04:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB