code:
$item_des = implode(',',$this->input->post('item_des'));
$item_cost = implode(',',$this->input->post('item_cost'));
$service_cost = implode(',',$this->input->post('service_cost'));
$total_cost = implode(',',$this->input->post('total_cost'));
$data = array(
'item_des' => $item_des,
'item_cost' => $item_cost,
'service_tax' => $service_cost,
'total_cost' => $total_cost,
);
print_r($data);
$query = $this->db->insert('table_name',$data);
In this code I have a form where I am using jquery/ajax for inserting form value but when I am using implode function it raise an error message and i.e.
Message: implode(): Invalid arguments passed
So, How can I fix this issue ?Please help me.
Thank You