X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fcountry_functions.php;h=5f54e8211c69f648565d0a4d5c6d9667a23cb37f;hb=d7d40e177e09a7161b79bfc95a1d2e91fdff4691;hp=613132340139d63fd1834aa1017fd533aea2088b;hpb=63f159414369b5ea19a8ca75d8cd8033c45d8341;p=mailer.git diff --git a/inc/libs/country_functions.php b/inc/libs/country_functions.php index 6131323401..5f54e8211c 100644 --- a/inc/libs/country_functions.php +++ b/inc/libs/country_functions.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 * @@ -46,14 +46,21 @@ function generateCountryInfo ($id) { $ret = '{--COUNTRY_CODE_404--}'; // Load code and description - $result = SQL_QUERY_ESC("SELECT `code`,`descr` FROM `{?_MYSQL_PREFIX?}_countries` WHERE `id`=%s LIMIT 1", + $result = SQL_QUERY_ESC("SELECT + `code`, + `descr` +FROM + `{?_MYSQL_PREFIX?}_countries` +WHERE + `id`=%s +LIMIT 1", array(bigintval($id)), __FUNCTION__, __LINE__); // Is there an entry? if (SQL_NUMROWS($result) == 1) { // Load entry $content = SQL_FETCHARRAY($result); - //* DEBUG: */ print($id.'=
'.print_r($content, true).'
'); + //* DEBUG: */ print($id.'=
'.print_r($content, TRUE).'
'); // Construct human-readable description $ret = sprintf("%s (%s)", $content['descr'], $content['code']);