Jump to content

Problems setting up a Database on 1and1 Linux server


MrTIMarshall

Recommended Posts

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";

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.