Active record last insert ID |
[eluser]Adam Owen[/eluser]
It sure is. Code: $this->db->insert_id() If you're redirecting after an insert then you can store it in flashdata. Code: $this->session->set_flashdata('id', $this->db->insert_id()); This and some other helpful commands are in this page of the user guide - http://ellislab.com/codeigniter/user-gui...lpers.html |
Messages In This Thread |
Active record last insert ID - by El Forum - 08-01-2008, 01:05 PM
Active record last insert ID - by El Forum - 08-01-2008, 02:16 PM
Active record last insert ID - by El Forum - 08-01-2008, 02:23 PM
Active record last insert ID - by El Forum - 08-03-2008, 08:50 PM
Active record last insert ID - by El Forum - 08-03-2008, 10:58 PM
|