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;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #codeigniter #return #inserted #id
ADD COMMENT
Topic
Name
4+6 =