We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5019f88 + 2b54402 commit 12e6984Copy full SHA for 12e6984
MysqliDb.php
@@ -221,6 +221,17 @@ public function where($whereProp, $whereValue)
221
$this->_where[$whereProp] = $whereValue;
222
return $this;
223
}
224
+
225
226
+ /**
227
+ * This methods returns the ID of the last inserted item
228
+ *
229
+ * @return integer The last inserted item ID.
230
+ */
231
+ public function getInsertId()
232
+ {
233
+ return $this->_mysqli->insert_id;
234
+ }
235
236
/**
237
* This method is needed for prepared statements. They require
0 commit comments