I want to detect and insert location of the visitor on a webpage to a table in mysql. Tried many ways, research on internet but nothing explains how to insert into mysql.
Example: User Location John 'City','Country'
I want to detect and insert location of the visitor on a webpage to a table in mysql. Tried many ways, research on internet but nothing explains how to insert into mysql.
Example: User Location John 'City','Country'
PHP can get the user's IP address via $_SERVER['REMOTE_ADDR']
, you can compare this in a Geoloaction Database. Here is a list of databases.
Also note IPv6 was rolled out earlier this week, you might have to have two Geolocation databases.