diff --git a/core/a/mysql.db.php b/core/a/mysql.db.php index b6e3b44..ccca137 100644 --- a/core/a/mysql.db.php +++ b/core/a/mysql.db.php @@ -43,6 +43,15 @@ abstract class Db implements IDb } } + /** + * will return the last inserted id of the given table + * @return int + */ + public function lastInsertId() + { + return Pdo::getLastInsertedID(); + } + /** * @param bool $user_name * @return mixed diff --git a/core/f/db.php b/core/f/db.php index 3a88c56..eacf6ce 100644 --- a/core/f/db.php +++ b/core/f/db.php @@ -1,12 +1,13 @@