последната поставяне на идентификатора модели кодов указател
function add_post($post_data){
$this->db->insert('posts', $post_data);
$insert_id = $this->db->insert_id();
return $insert_id;
}
последната поставяне на идентификатора модели кодов указател
function add_post($post_data){
$this->db->insert('posts', $post_data);
$insert_id = $this->db->insert_id();
return $insert_id;
}
codeigniter връща последния включат идентификатор
$this->db->insert('posts', $post_data);
$insert_id = $this->db->insert_id();
return $insert_id;