]> git.mxchange.org Git - mailer.git/commitdiff
MySQLi requires at least a link resource for all its functions/methods
authorRoland Häder <roland@mxchange.org>
Thu, 20 Jun 2013 20:52:57 +0000 (20:52 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 20 Jun 2013 20:52:57 +0000 (20:52 +0000)
inc/db/lib-mysqli.php

index 85e9c0a03cc3c4ea6309816e313938c262375bb9..02d0c8e5da12fbe5aaf47debb4f22bc48ab8ef66 100644 (file)
@@ -276,7 +276,7 @@ function sqlFreeResult ($resource) {
 // Get id from last INSERT command and secure id
 function getSqlInsertId () {
        if (!isSqlLinkUp()) return FALSE;
-       return bigintval(mysqli_insert_id());
+       return bigintval(mysqli_insert_id(getSqlLink()));
 }
 
 // Escape a string for the database