I'm saving my data with Array, look:
Get data:
$data['address'] = $this->input->post('address');
Save:
$this->load->model('mymodel');
if($this->inscricao_model->mymodel($data)){
echo "success";
}
But now, I'll have another field (checkbox) with names as array, how to I save this information? My check box:
<input type="checkbox" name="skills[]" id"skill" />
<input type="checkbox" name="skills[]" id"skill" />
I was trying, but generate a error:
$data['skills'] = $this->input->post('skills');
Message: Array to string conversion
$this->input->post('skills')could you postvar_dump($this->input->post('skills'))array(2) { [0]=> string(8) "testss" [1]=> string(7) "tessssst" }@dm03514