Currency Codes dropdown and SQL table
I always find it useful to share publicly those tasks I find myself carrying out many many times, almost robotically. In fact, I’d like for there to be a worker bot (soft AI not hard, and software not hard… we don’t need a Terminator style takeover) to do my dirty work for me.
Well, until such a helpful little worker bot exists, I’ll have to settle for blogging and sharing via Social Networks to appease my data reuse and job simplification desires. Here’s some data for International Currency information that I end up using in many databases (and I’ve added to my upcoming OpenRecommender project, to shamelessly plug my projects).
The following are the ISO-4217 Currency Codes of the (not including money symbols) of the current global financial system…
Currency code:
To save you a dig through the source, here’s the HTML for a quick Select drop-down box:
Next up, a nice raw MySQL dump you can use in your own application:
CREATE TABLE IF NOT EXISTS `currency` ( `currency_id` int(11) NOT NULL auto_increment, `currency_name` varchar(64) default NULL, `currency_code` char(3) default NULL, PRIMARY KEY (`currency_id`), KEY `idx_currency_name` (`currency_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ; -- -- Dumping data for table `currency` -- INSERT INTO `currency` (`currency_id`, `currency_name`, `currency_code`) VALUES (1, 'Andorran Peseta', 'ADP'), (2, 'United Arab Emirates Dirham', 'AED'), (3, 'Afghanistan Afghani', 'AFA'), (4, 'Albanian Lek', 'ALL'), (5, 'Netherlands Antillian Guilder', 'ANG'), (6, 'Angolan Kwanza', 'AOK'), (7, 'Argentine Peso', 'ARS'), (9, 'Australian Dollar', 'AUD'), (10, 'Aruban Florin', 'AWG'), (11, 'Barbados Dollar', 'BBD'), (12, 'Bangladeshi Taka', 'BDT'), (14, 'Bulgarian Lev', 'BGN'), (15, 'Bahraini Dinar', 'BHD'), (16, 'Burundi Franc', 'BIF'), (17, 'Bermudian Dollar', 'BMD'), (18, 'Brunei Dollar', 'BND'), (19, 'Bolivian Boliviano', 'BOB'), (20, 'Brazilian Real', 'BRL'), (21, 'Bahamian Dollar', 'BSD'), (22, 'Bhutan Ngultrum', 'BTN'), (23, 'Burma Kyat', 'BUK'), (24, 'Botswanian Pula', 'BWP'), (25, 'Belize Dollar', 'BZD'), (26, 'Canadian Dollar', 'CAD'), (27, 'Swiss Franc', 'CHF'), (28, 'Chilean Unidades de Fomento', 'CLF'), (29, 'Chilean Peso', 'CLP'), (30, 'Yuan (Chinese) Renminbi', 'CNY'), (31, 'Colombian Peso', 'COP'), (32, 'Costa Rican Colon', 'CRC'), (33, 'Czech Republic Koruna', 'CZK'), (34, 'Cuban Peso', 'CUP'), (35, 'Cape Verde Escudo', 'CVE'), (36, 'Cyprus Pound', 'CYP'), (40, 'Danish Krone', 'DKK'), (41, 'Dominican Peso', 'DOP'), (42, 'Algerian Dinar', 'DZD'), (43, 'Ecuador Sucre', 'ECS'), (44, 'Egyptian Pound', 'EGP'), (45, 'Estonian Kroon (EEK)', 'EEK'), (46, 'Ethiopian Birr', 'ETB'), (47, 'Euro', 'EUR'), (49, 'Fiji Dollar', 'FJD'), (50, 'Falkland Islands Pound', 'FKP'), (52, 'British Pound', 'GBP'), (53, 'Ghanaian Cedi', 'GHC'), (54, 'Gibraltar Pound', 'GIP'), (55, 'Gambian Dalasi', 'GMD'), (56, 'Guinea Franc', 'GNF'), (58, 'Guatemalan Quetzal', 'GTQ'), (59, 'Guinea-Bissau Peso', 'GWP'), (60, 'Guyanan Dollar', 'GYD'), (61, 'Hong Kong Dollar', 'HKD'), (62, 'Honduran Lempira', 'HNL'), (63, 'Haitian Gourde', 'HTG'), (64, 'Hungarian Forint', 'HUF'), (65, 'Indonesian Rupiah', 'IDR'), (66, 'Irish Punt', 'IEP'), (67, 'Israeli Shekel', 'ILS'), (68, 'Indian Rupee', 'INR'), (69, 'Iraqi Dinar', 'IQD'), (70, 'Iranian Rial', 'IRR'), (73, 'Jamaican Dollar', 'JMD'), (74, 'Jordanian Dinar', 'JOD'), (75, 'Japanese Yen', 'JPY'), (76, 'Kenyan Schilling', 'KES'), (77, 'Kampuchean (Cambodian) Riel', 'KHR'), (78, 'Comoros Franc', 'KMF'), (79, 'North Korean Won', 'KPW'), (80, '(South) Korean Won', 'KRW'), (81, 'Kuwaiti Dinar', 'KWD'), (82, 'Cayman Islands Dollar', 'KYD'), (83, 'Lao Kip', 'LAK'), (84, 'Lebanese Pound', 'LBP'), (85, 'Sri Lanka Rupee', 'LKR'), (86, 'Liberian Dollar', 'LRD'), (87, 'Lesotho Loti', 'LSL'), (89, 'Libyan Dinar', 'LYD'), (90, 'Moroccan Dirham', 'MAD'), (91, 'Malagasy Franc', 'MGF'), (92, 'Mongolian Tugrik', 'MNT'), (93, 'Macau Pataca', 'MOP'), (94, 'Mauritanian Ouguiya', 'MRO'), (95, 'Maltese Lira', 'MTL'), (96, 'Mauritius Rupee', 'MUR'), (97, 'Maldive Rufiyaa', 'MVR'), (98, 'Malawi Kwacha', 'MWK'), (99, 'Mexican Peso', 'MXP'), (100, 'Malaysian Ringgit', 'MYR'), (101, 'Mozambique Metical', 'MZM'), (102, 'Namibian Dollar', 'NAD'), (103, 'Nigerian Naira', 'NGN'), (104, 'Nicaraguan Cordoba', 'NIO'), (105, 'Norwegian Kroner', 'NOK'), (106, 'Nepalese Rupee', 'NPR'), (107, 'New Zealand Dollar', 'NZD'), (108, 'Omani Rial', 'OMR'), (109, 'Panamanian Balboa', 'PAB'), (110, 'Peruvian Nuevo Sol', 'PEN'), (111, 'Papua New Guinea Kina', 'PGK'), (112, 'Philippine Peso', 'PHP'), (113, 'Pakistan Rupee', 'PKR'), (114, 'Polish Zloty', 'PLN'), (116, 'Paraguay Guarani', 'PYG'), (117, 'Qatari Rial', 'QAR'), (118, 'Romanian Leu', 'RON'), (119, 'Rwanda Franc', 'RWF'), (120, 'Saudi Arabian Riyal', 'SAR'), (121, 'Solomon Islands Dollar', 'SBD'), (122, 'Seychelles Rupee', 'SCR'), (123, 'Sudanese Pound', 'SDP'), (124, 'Swedish Krona', 'SEK'), (125, 'Singapore Dollar', 'SGD'), (126, 'St. Helena Pound', 'SHP'), (127, 'Sierra Leone Leone', 'SLL'), (128, 'Somali Schilling', 'SOS'), (129, 'Suriname Guilder', 'SRG'), (130, 'Sao Tome and Principe Dobra', 'STD'), (131, 'Russian Ruble', 'RUB'), (132, 'El Salvador Colon', 'SVC'), (133, 'Syrian Potmd', 'SYP'), (134, 'Swaziland Lilangeni', 'SZL'), (135, 'Thai Baht', 'THB'), (136, 'Tunisian Dinar', 'TND'), (137, 'Tongan Paanga', 'TOP'), (138, 'East Timor Escudo', 'TPE'), (139, 'Turkish Lira', 'TRY'), (140, 'Trinidad and Tobago Dollar', 'TTD'), (141, 'Taiwan Dollar', 'TWD'), (142, 'Tanzanian Schilling', 'TZS'), (143, 'Uganda Shilling', 'UGX'), (144, 'US Dollar', 'USD'), (145, 'Uruguayan Peso', 'UYU'), (146, 'Venezualan Bolivar', 'VEF'), (147, 'Vietnamese Dong', 'VND'), (148, 'Vanuatu Vatu', 'VUV'), (149, 'Samoan Tala', 'WST'), (150, 'Communauté Financière Africaine BEAC, Francs', 'XAF'), (151, 'Silver, Ounces', 'XAG'), (152, 'Gold, Ounces', 'XAU'), (153, 'East Caribbean Dollar', 'XCD'), (154, 'International Monetary Fund (IMF) Special Drawing Rights', 'XDR'), (155, 'Communauté Financière Africaine BCEAO - Francs', 'XOF'), (156, 'Palladium Ounces', 'XPD'), (157, 'Comptoirs Français du Pacifique Francs', 'XPF'), (158, 'Platinum, Ounces', 'XPT'); (159, 'Democratic Yemeni Dinar', 'YDD'), (160, 'Yemeni Rial', 'YER'), (161, 'New Yugoslavia Dinar', 'YUD'), (162, 'South African Rand', 'ZAR'), (163, 'Zambian Kwacha', 'ZMK'), (164, 'Zaire Zaire', 'ZRZ'), (165, 'Zimbabwe Dollar', 'ZWD'), (166, 'Slovak Koruna', 'SKK'), (167, 'Armenian Dram', 'AMD');
Related articles
- Asian Currency Opportunity (r-bloggers.com)
- Future of money: A currency that’s building community (newscientist.com)
- Aussie Dollar, Swiss Franc and Swedish Kroner Lead the Pack (businessinsider.com)
- U.S. Currency Backed by Gold and Silver? Yes, But the ‘U’ Stands for Utah (dailyfinance.com)
- No Place To Hide: “Unexpected” Inflation Signal And Continued Weak Readings on Economy Drive DOW Under 12,000 (minx.cc)
- GOLD – GOLD – GOLD – the fever is alive … (bleyzie.wordpress.com)
- Lionel Dricot: The Bitcoin Bubble (ploum.net)
- Everything You Want to Know About Bitcoin, the Digital Currency Worth More Than the Dollar | 80beats (blogs.discovermagazine.com)
- Why bitcoin failed as a currency and is on its way to become an asset (reddit.com)
- Yuan expected to become major world currency (theglobeandmail.com)
- Forget piracy, U.S. government is going after Bitcoin (venturebeat.com)
- Theories of the current crisis: Closing thoughts on the hyperinflationists (pogoprinciple.wordpress.com)
- For Money and SQL Money Data Type Be Care full while using !!!! (bimentalist.wordpress.com)
Leave a Reply
No trackbacks yet.
No post with similar tags yet.
Posts in similar categories
BC$ = Behavior, Content, Money
The goal of the BC$ project is to raise awareness and make changes with respect to the three pillars of information freedom - Behavior (pursuit of interests and passions), Content (sharing/exchanging ideas in various formats), Money (fairness and accessibility) - bringing to light the fact that:
1. We regularly hand over our browser histories, search histories and daily online activities to companies that want our money, or, to benefit from our use of their services with lucrative ad deals or sales of personal information.
2. We create and/or consume interesting content on their services, but we aren't adequately rewarded for our creative efforts or loyalty.
3. We pay money to be connected online (and possibly also over mobile), yet we lose both time and money by allowing companies to market to us with unsolicited advertisements, irrelevant product offers and unfairly structured service pricing plans.

On May 26th, Google announced the deprecation and/or shutdown of many of their m...
Yesterday I wrote about the Google API shutdown. It seems that I was wrong in that post ...
I've been thinking a lot about ways that Health Care and the medical system in general can be improved through the use of IT. In the United States right now, we are over 1 year into the so-called "Meaningful Use" guidelines established by the Health Information Technology for Economic and Clinical Health (HITECH) Act of...
The ALPHA version of SkipSearch has been released!!!
SkipSearch is a proprietary front-end to OpenRecommender, an open source recommendation engine. Its primary features include:
Easy-to-use Interface with hover-intent to reduce clicks, audio controls & shortcuts
Lightweight HTML5 / CSS3 layout
Mobile-friendly, responsive design
Schema.org properties and support for RDFa/Microformats
Import data from multiple accounts (Google/Yahoo/Microsoft/Twitter/Facebook/LinkedIN/Last.FM/StumbleUpon and other social media account integration)
Export functionality...
Like most Canadians, I have paid way more than I care to admit to the greedy Telcos over the past several years. My estimates put my average monthly bill for two smartphone plans and a home telephone line with an international long-distance plan at approximately $175/month (some months higher, some months lower, but that's the...
It is with great humility and gratitude that I announce that I have finished in the Top 10 of the Mintchip Challenge with my proposed application and idea that "A digital currency can be used for P2P barter and micropayments".
You can see the full list of finalists in the Mintchip Challenge here:
http://ideas.mintchipchallenge.com/
There were really some...
Here's an explanation of what we have today, followed by a Use-Case for my idea...
TODAY:
1. Person A is a farmer who has worked hard all season and is ready for harvest of their crops. For simplicity's sake, let's call him the "Seller", since the next step will be to sell their produce. For that they...
With the real, true and unbiased news inevitably moving online towards the so-called "Alternative Media" (which really is almost reaching the point where it is not alternative so much as the first go-to source), its a good idea to start replicating some of the most useful elements from Television, Print and Radio (aka. the rest...
Since the February confirmation of the Facebook IPO, Facebook has continued to stagnate in user-base yet as an organization it holds no punches as it attempts to grow internationally, and its stock price continues to soar as Class A shares finally open up to the average person (major investment firms had first dibs at the...
The Royal Canadian Mint(RCM) has sponsored the MintChip Challenge 2012 in an effort to attract developers to the idea of developing software for the MintChip and giving away their best financial application ideas, basically, for free (on the long-shot that you are one of the few who win).
Starting April 1st, 2012, they began mailing out...
If you are an entrepreneur, you might often get confused about when to raise venture capital as against venture debt. This is because these two words have very thin
margin of convergence which raises the misconceptions in the first place. The basic difference between venture debt and venture capital is that the debt you have taken...
iScroll 4 is the latest version and release of an excellent content slider-type JavaScript component by Matteo Spinelli. While one may argue that content sliders are a dime a dozen, iScroll differs in the fact that it has full support for all the main WebKit for iOS gestures including pinch/zoom, pull-up/pull-down, smooth scrolling and screen...
$db_host = 'localhost';$db_user = 'root';
$db_pass = '';
$db_db = 'currencycodes';
mysql_connect($db_host, $db_user, $db_pass) or die('Whoops: ' . mysql_error());
mysql_selectdb($db_db) or die('Whoops: ' . mysql_error());
$sql = "SELECT * FROM currency ORDER BY currency_name ASC";
$result = mysql_query($sql);
echo '';
while($row = mysql_fetch_array($result))
{
echo '' . $row['currency_name'] . ' ' . $row['currency_code'] . '';
}
echo '';
Thanks for this, nice full-trip PHP code to show how to list a full table for the Currency codes…
Really very nice and informative explanation you have given and am now fan of your following sentece “Behavior, Content, Money – 3 Things you should never give away for free”..Its really True !!!
It was great to discover your site recently. I came here just hoping to uncover interesting insight into IT and background behind currency codes and was not disappointed. Your ideas on new approaches on this subject material were informative and a fantastic help to me personally. Thank you for having time to write out these things as well as for sharing your thoughts.
You can definitely see your enthusiasm in the work you write. The web needs and hopes for even more passionate writers such as you who are not afraid to say how they believe. All the time follow your heart.