aboutsummaryrefslogtreecommitdiff
path: root/include/sql.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/sql.class.php')
-rw-r--r--include/sql.class.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sql.class.php b/include/sql.class.php
index c32de63..cb95a83 100644
--- a/include/sql.class.php
+++ b/include/sql.class.php
@@ -162,6 +162,12 @@ class Bayonet_SQL
return mysqli_num_rows($result);
}
+
+ public function InsertID(){
+ decho("Fetching insert id for auto increment");
+
+ return mysqli_insert_id($GLOBALS['___mysqli_ston']);
+ }
}
?>