diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2011-04-17 20:13:07 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2011-04-17 20:13:07 -0400 |
commit | 0077cb99704fe863cf731fc5cab792af2ede96c2 (patch) | |
tree | dd68f44971aa2aee821f588d33b250dcd2fe57e3 /include/sql.class.php | |
parent | e8b28c5e910d92cbec3d4baa6e98f025e8418d28 (diff) | |
download | bayonetcms-0077cb99704fe863cf731fc5cab792af2ede96c2.tar.gz |
Backporting retarded amount of changes outside of version control
Diffstat (limited to 'include/sql.class.php')
-rw-r--r-- | include/sql.class.php | 6 |
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']); + } } ?> |