Barand Posted February 27, 2013 Share Posted February 27, 2013 there's no data! Link to comment https://forums.phpfreaks.com/topic/274880-problems-setting-up-a-database-on-1and1-linux-server/page/2/#findComment-1415495 Share on other sites More sharing options...
Barand Posted February 28, 2013 Share Posted February 28, 2013 I created an addition table country code name You need to convert the IP to an integer value with that data then $sql = "SELECT c.name, l.city, l.latitude, l.longitude FROM blocks b INNER JOIN location l USING (locId) INNER JOIN country c ON l.country = c.code WHERE $ipInt BETWEEN b.startIpNum AND endIpNum"; Link to comment https://forums.phpfreaks.com/topic/274880-problems-setting-up-a-database-on-1and1-linux-server/page/2/#findComment-1415587 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.