vrátit poslední ID vložení do codeigniter
$id = $this->db->insert_id();
Poslední vložení id modelu codeigniter
function add_post($post_data){
$this->db->insert('posts', $post_data);
$insert_id = $this->db->insert_id();
return $insert_id;
}
codeigniter Poslední vložka id
$last_inserted_id = $this->db->insert_id();