How do I get the autoincremented ID of the latest inserted row. |
My code:
PHP Code: $this->db->simpleQuery('Use D'.$id); This returns a model object, but I need the number of the ID. if I use PHP Code: $this->db->insert_id(); I get an error which says that insert_id() is an undefined method. Code: +----------+--------------+------+-----+---------------------+----------------+
~ Dave
|
Messages In This Thread |
How do I get the autoincremented ID of the latest inserted row. - by davecoventry - 10-15-2022, 01:14 PM
RE: How do I get the autoincremented ID of the latest inserted row. - by JustJohnQ - 10-15-2022, 11:48 PM
RE: How do I get the autoincremented ID of the latest inserted row. - by davecoventry - 10-16-2022, 02:31 AM
|