Jump to content

[SOLVED] detect and store country name into database.


zohab

Recommended Posts

Hi,

 

When user visit my site index page i want to  detect and store country name into my database.

 

example

 

user1 type http://www.example.com in Denmark then

insert into tablename (id,countryname) values('id','countryname')

insert into tablename (id,countryname) values('1','Denmark ')

 

user2 type http://www.example.com in USA then

insert into tablename (id,countryname) values('2','USA ')

 

user3 type http://www.example.com in India then

insert into tablename (id,countryname) values('3','India ')

 

any idea?

 

 

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.