Return Row ID when inserting |
[eluser]domfosnz[/eluser]
Is there any way of accessing the Row Id of a freshly inserted record. Once I have inserted a record I need to insert several child records in a separate table with the parent records ID. Thanks
[eluser]Jelmer[/eluser]
$this->db->insert_id() Take a look at http://ellislab.com/codeigniter/user-gui...lpers.html for more helpfull functions.
|
Welcome Guest, Not a member yet? Register Sign In |