X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fdb%2Flib-mysql3.php;h=e20b271d441016ce53c29f553404890a75f197cb;hb=cd7d344ea7007cfa20413acd3e03e50f0ab86d86;hp=c32c8f2b869e57347fd3d97c5692bdd927a1a5a4;hpb=7454c5626871adc340ae1c90a2140366c4b73d9c;p=mailer.git diff --git a/inc/db/lib-mysql3.php b/inc/db/lib-mysql3.php index c32c8f2b86..e20b271d44 100644 --- a/inc/db/lib-mysql3.php +++ b/inc/db/lib-mysql3.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * Copyright (c) 2009 - 2013 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -159,7 +159,7 @@ function SQL_NUMROWS ($resource) { } // SQL affected rows -function SQL_AFFECTEDROWS() { +function SQL_AFFECTEDROWS () { // Valid link resource? if (!SQL_IS_LINK_UP()) return FALSE; @@ -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