$this->load->library('upload', $config);
if ( ! $this->upload->do_upload('upload_old'))
{
$error = array('error' => $this->upload->display_errors());
print_r($error);
}
else
{
$data['foto_old'] = $this->upload->data("file_name");
}
$tracking['foto_old'] = $data; //THIS PROBLEM
$this->db->trans_start();
$this->db->insert('ticket', $data);
$this->db->insert('tracking', $tracking);