Jump to content

replace text with flag


anilm

Recommended Posts

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

 

Link to comment
https://forums.phpfreaks.com/topic/284140-replace-text-with-flag/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.