Joseph WANG
4
Q:

codeigniter return last inserted id

$id = $this->db->insert_id();
3
   $this->db->insert('posts', $post_data);
   $insert_id = $this->db->insert_id();
   return  $insert_id;
0

New to Communities?

Join the community