[eluser]kikz4life[/eluser]
when i try to call the function getDetailList in the controller it gives me an array. What i want to do is just get the $ids in the function getDetailList($ids).
For more clarifcation i tried using this in my controller
$this->User->getDetailList($ids); but this return an array.
My Controller:
Code:
$data2['company_id'] = $this->db->insert_id();
$ids = $this->input->post('user_id');
$data2['user_id']= $this->User->getDetailList($ids);
$this->db->insert('sec_companyaccess',$data2);}
error found in my firebug:
Code:
Unknown column 'Array' in 'field list'</p><p>INSERT INTO `erp_sec_companyaccess` (`company_id`, `user_id`) VALUES (2, Array)