Welcome Guest, Not a member yet? Register   Sign In
$_FILES Array getting empty when using $this->form_validation->run()
#10

After your first $data, get the last_id

Code:
   $this->load->model('My_Backend_model');
    $result = $this->My_Backend_model->lets_insert_form_post($data);
    $lastid = $this->db->insert_id();

then within your second $data which is named as  $data2 

Code:
$data2=array(
         'bla bla column from your db' => $array,
         'propertyid' => $lastid
         );

then send this $data2 to Model as well.
Reply


Messages In This Thread
RE: $_FILES Array getting empty when using $this->form_validation->run() - by demyr - 06-12-2019, 12:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB