Please enter only 3 alphabetic characters for the country code.
Please enter only alphabetic characters for the country name.
Click a letter to search for country code alphabetically:
Click an item below to display country information.
ABW - Aruba
AFG - Afghanistan
AGO - Angola
AIA - Anguilla
ALB - Albania
AND - Andorra
ANT - Netherlands Antilles
ARE - United Arab Emirates
ARG - Argentina
ARM - Armenia
ASM - American Samoa
ATA - Antarctica
ATF - French Southern territories
ATG - Antigua and Barbuda
AUS - Australia
AUT - Austria
AZE - Azerbaijan
Continent: Asia
Region: Southern and Central Asia
Surface Area: 652,090 sq. km
Year of Independence: 1919
Population: 22,720,000
Life Expectancy: 45.9 years
GNP: $5,976 million
Local Name: Afganistan/Afqanestan
Form of Government: Islamic Emirate
Head of State: Mohammad Omar
Capital: Kabul

| Name | District | Population |
|---|---|---|
| Herat | Herat | 186,800 |
| Kabul | Kabol | 1,780,000 |
| Mazar-e-Sharif | Balkh | 127,800 |
| Qandahar | Qandahar | 237,500 |
| Language | Status | Percentage |
|---|---|---|
| Balochi | - | 1 |
| Dari | Official | 32 |
| Pashto | Official | 52 |
| Turkmenian | - | 2 |
| Uzbek | - | 9 |
$country_code: AFG -
$search_char: A
TEST: $country_code: AFG
WHERE: WHERE LEFT(Code, 1) = 'A'
$country_code: AFG
$country_name:
$search_char: A
Country code query: "SELECT Code, Name FROM country WHERE LEFT(Code, 1) = 'A' ORDER BY Code ASC"
Country code query returned 17 rows
-----
$result->num_rows: 17
$country_code: AFG
$country_name:
$search_char: A
Country query: "SELECT Code, country.Name, Continent, Region, SurfaceArea, IndepYear, country.Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState, Capital, Code2, city.Name AS Capital_City FROM country, city WHERE Code = 'AFG' AND country.Capital = city.ID"
Country query returned 1 row
City query: "SELECT Name, CountryCode, District, Population FROM city WHERE CountryCode = 'AFG' ORDER BY Name ASC"
City query returned 4 rows
Language query: "SELECT Language, IsOfficial, Percentage FROM countrylanguage WHERE CountryCode = 'AFG' ORDER BY Language ASC"
Language query returned 5 rows
The PHP script that makes this page work was created and is copyright © 2008, 2021, 2024 by Dennis Langley, Palo Alto, California.