Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

codeigniter return last inserted id

   $this->db->insert('posts', $post_data);
   $insert_id = $this->db->insert_id();
   return  $insert_id;
 
PREVIOUS NEXT
Tagged: #codeigniter #return #inserted #id
ADD COMMENT
Topic
Name
9+8 =