Using Jamie Rumbelow's My_Model and mySQL. I am not able to find, how to get a last inserted Id in a particular table. For example,
Table_A
--------+
id |
--------+
1 |
--------+
2 |
--------+
I am try below code but it returning int(0)
$id = $this->Model_teacher->_database->insert_id();