FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Display Country Flags





namneu
If you want to display the country flags on your website see this site.

http://hot-things.net/ip2c.php

This is a free script that displays country flags.
mathiaus
In case you want some more info....

What this script does s take the guests IP and works out what country their from and then displays their flag where you choose. Smile
dark_paladin
that sounds good, but my site is only for a few people in US, it wouldn't do me any good to put that script in my site... If that script can display state's flags, then it will really be something that I would consider...
FreakyMan
oh, thakes
unfo
dark_paladin wrote:
that sounds good, but my site is only for a few people in US, it wouldn't do me any good to put that script in my site... If that script can display state's flags, then it will really be something that I would consider...


I'd say try php and mysql then, get them to register and fill in their state. Link state names to a nr, get a flag for each nr and put them on your site. in lets say the map images/flags/flag#.jpg
Then use this in front of names (in php):


Code:

$query = "select state from members where id=$idyouneed;";
$result = mysql_query($query);
$row = mysql_fetch_row($result);
//this gives the state nr in $row[0]

print "<img src=\"images/flags/flag" . $row[0] . ".jpg\">";
simplyw00x
You can actually use IP tools (This one, maybe) to get more detailled geographical info from an IP than just country.
Related topics
Lantern Festival
What is the Difference Between ..... Indonesian / Country A
fav country (and why?)
Fantastico could be updated
Display cards
Chavez: U.S. will 'bite the dust' if it invades
Just an article that got my attention...
gratis forum ?
State your Political Philosophy! (1000 FRIH$ to the best!)
Are Americans stupid?
flags of the world
Outrageous: Denmark re-publish Mohammud cartoons
OGame
Best dual sim phones of the country
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.