* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
// Generate a human-readable country description with code
function generateCountryInfo ($id) {
// Not found is the default
// Generate a human-readable country description with code
function generateCountryInfo ($id) {
// Not found is the default
// Load code and description
$result = SQL_QUERY_ESC("SELECT `code`, `descr` FROM `{?_MYSQL_PREFIX?}_countries` WHERE `id`=%s LIMIT 1",
// Load code and description
$result = SQL_QUERY_ESC("SELECT `code`, `descr` FROM `{?_MYSQL_PREFIX?}_countries` WHERE `id`=%s LIMIT 1",
// Construct human-readable description
$ret = sprintf("%s (%s)", $content['descr'], $content['code']);
// Construct human-readable description
$ret = sprintf("%s (%s)", $content['descr'], $content['code']);