diff --git a/MysqliDb.php b/MysqliDb.php index 30646925..ad991db5 100644 --- a/MysqliDb.php +++ b/MysqliDb.php @@ -221,6 +221,17 @@ public function where($whereProp, $whereValue) $this->_where[$whereProp] = $whereValue; return $this; } + + + /** + * This methods returns the ID of the last inserted item + * + * @return integer The last inserted item ID. + */ + public function getInsertId() + { + return $this->_mysqli->insert_id; + } /** * This method is needed for prepared statements. They require