Barand Posted February 27, 2013 Share Posted February 27, 2013 there's no data! Quote Link to comment 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"; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.