Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

last insert id model codeigniter

function add_post($post_data){
   $this->db->insert('posts', $post_data);
   $insert_id = $this->db->insert_id();

   return  $insert_id;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #insert #id #model #codeigniter
ADD COMMENT
Topic
Name
1+5 =