I am trying to gather information about visitors and saving their info to database.
Ive finished database and php part today ( with some help ), when I tested the system, It saves IP address and other information via computers, tablets, phones using WiFi but it doesn't save-gather any information about phones using celular data.
What could be the problem ?
Here are the partial part of the code im using ;
include("counter/counter.php");
$counter = new counter();
$conn = mysql_connect($sn,$un,$pw);//server, username and password are your server address and access details
if(!$conn)
die("cannot connect to mysql server" . mysql_error());
mysql_select_db($db, $conn);
$visitor_browser = getBrowserType();
$ip_data = get_ip_info($ip);
require_once("ip.codehelper.io.php");
require_once("php_fast_cache.php");
$_ip = new ip_codehelper();
$real_client_ip_address = $_ip->getRealIP();
$visitor_location = $_ip->getLocation($real_client_ip_address);
$guest_ip = $visitor_location['IP'];
$guest_country = $visitor_location['CountryName'];
$guest_city = $visitor_location['CityName'];
$guest_state = $visitor_location['RegionName'];
$sql = "INSERT INTO `visitor_info` (ipAdresi, browserTuru, sehirIsmi, sehirX, sehirY, bolgeIsmi, ulkeIsmi, ulkeKodu, ulkeX, ulkeY, saatTuruSehir, kitaIsmi, kitaKodu, toplamNufus, aramaKodu, alanCapi, dilTuru, paraBirimi, elektrikTuru) VALUES('".$real_client_ip_address."', '".$_SERVER['HTTP_USER_AGENT']."', '".$visitor_location['CityName']."', '".$visitor_location['CityLatitude']."', '".$visitor_location['CityLongitude']."', '".$visitor_location['RegionName']."', '".$visitor_location['CountryName']."', '".$visitor_location['Country']."', '".$visitor_location['CountryLatitude']."', '".$visitor_location['CountryLongitude']."', '".$visitor_location['LocalTimeZone']."', '".$visitor_location['ContinentName']."', '".$visitor_location['ContinentCode']."', '".$visitor_location['Population']."', '".$visitor_location['CallingCode']."', '".$visitor_location['AreaSqKm']."', '".$visitor_location['Languages']."', '".$visitor_location['Currency']."', '".$visitor_location['Electrical']."')";
Why it doesn't gather information of phones using cellular data?
Thanks in advance.