How to insert image in database without uploading any folder?
My controller side code is below :
$data['f_name'] = $this->input->post('f_name');
$data['l_name'] = $this->input->post('l_name');
$data['contact'] = $this->input->post('contact');
$data['email'] = $this->input->post('email');
$data['uid'] = $this->input->post('uid');
//$data['user_image'] = $this->input->post->userfiles['file_name'];
My model side code id below :
$this->db->where('id',$data['uid']);
$this->db->update('users',array(
'first_name' => $data['f_name'],
'last_name' => $val['l_name'],
'email' => $val['email'],
'phone' => $data['contact']
));