Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

replace text with flag

$
0
0
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

 


Viewing all articles
Browse latest Browse all 13200

Trending Articles