profile field, country, flag
hi
im not so good in mysql, but good enough in php. so i need some help to know whats the user country to set a small flag that apear in his post, in postbit template. i want to do something looks like the following:
if ($post[field2]=="england") { $flag="EN"; }
if ($post[field2]=="germany") { $flag="GR"; }
..and so on
$flag="<img src=".$flag.".gif>";
and then but $flag in postbit template
for those who may tell me that i need to create anew table: my members are from 6 countries only. thats why i dont think that i have to create a new table to do so.
|