Hi
I need to replace country abbreviations with the appropriate country flag.
The php line on the website is a call from an ebay api:
print "<h5>".$item["COUNTRY"]."</h5>";
so, if the country is Spain, the result ES is printed
I have an image folder with all the countries flags, and this particular case, it is called ES.png.
There is also a mySql database in the format: ID, name,abbr (in this case: 1,Spain,ES)
Is there an easy way to do this dynamically?
Thanks