]> git.mxchange.org Git - mailer.git/blobdiff - inc/db/lib-mysql3.php
Renamed function, used more "pool functions":
[mailer.git] / inc / db / lib-mysql3.php
index 48415aa28abc4cf97b638fc6bae1af3f8b8b2563..a6267f171b3ac7b52aa06ecf380fb09a9d3442b1 100644 (file)
@@ -282,10 +282,10 @@ function SQL_FREERESULT ($resource) {
        return $res;
 }
 
-// Get id from last INSERT command
-function SQL_INSERTID () {
+// Get id from last INSERT command and secure id
+function SQL_INSERT_ID () {
        if (!SQL_IS_LINK_UP()) return FALSE;
-       return mysql_insert_id();
+       return bigintval(mysql_insert_id());
 }
 
 // Escape a string for the database