= startIpNum"; $result = mysql_query($query) or die("IP2Location Query Failed"); // Retrieve the recordset (only one) $row = mysql_fetch_object($result); // got my row of data //assign variables to field names $country = $row->country; $abcountry = $row->countryShort; $cityname = $row->city; $countrylong = $row->country; $latitude = $row->latitude; $longitude = $row->longitude; $zipcode = $row->zipcode; $state = $row->region; $fullstate = $row->region; //capitalize State $fullstate = strtolower($fullstate); $fullstate = substr_replace($fullstate, strtoupper(substr($fullstate, 0, 1)), 0, 1); //capitalize city $cityname = ucwords(strtolower($cityname)); //capitalize country $countrylong = ucwords(strtolower($countrylong)); ?>

|
| *It is not
necessary for "postal code" value to be accurate-- just "close enough".
However if you choose to correct it, GeoZoodle may be more accurate for
you. This is a different kind of internet. News and information as specific to your location as you desire. A unique experience for every user.
|