Is there a way to save multiple selection or checkbox to database table in 1 column and then parse to get it in array ?
I have this screnario:
I have a right permission, and id 1,2,3 and 5 has access to a page.
id,username,password,right
1, admin, 123, 1
2, john, john, 2
3, doe, doe, array(1,2,3)
model:
$insert_member = array(
'username' => $this->input->post('username'),
'password' => md5($this->input->post('password')),
'right' => $this->input->post('right')
);
$insert = $this->db->insert('members', $insert_member);
return $insert;
Any help is appreciated.