I found this nifty code http://snipplr.com/view/36868/ the only difference is that my database displays differently, how can I display each of my countries when my database is set up this way. Here is the code:
if( $country = 'Afghanistan' ) $code == 'AF';
I figured that, if not correct me the top should be included this way. Here is the code:
$country = $row['country'];
If that is true I believe although here is where I start getting some troubles It should return the code instead of the country. Here is the code:
return $code;
Does anybody have an idea how I can change my countries into codes when I have the countrys whole name instead of the codes?