no. this php code not set with my values. I want insert to values(in the first my post) as: http://i.imgur.com/H6EDa.png
How should change html code(can not change input value) and what use in php code?
My code is this but not work:
$u_id = $this->input->post('u_id');
$un = $this->input->post('un');
$up = $this->input->post('up');
$ue = $this->input->post('ue');
$data = array();
foreach ($un as $idx => $name) {
$data[] = array(
'u_id' => $u_id[$idx],
'un' => $un[$idx],
'up' => $up[$idx],
'ue' => $ue[$idx],
);
};
$this -> db -> insert_batch('units', $data);