Array (
[0] => Array (
[id] => 2
[lat] => 40.8824996948
[long] => -74.381942749
)
[1] => Array (
[id] => 6
[lat] => 40.8824996948
[long] => -74.381942749
)
[2] => Array (
[id] => 4
[lat] => 51.5001525879
[long] => -0.126236006618 )
)
)
This is the code i'm using which gives me multipuls of arrays (as it's looping)
include('modules/fab/ip2location.class.php');
$ip = new ip2location;
$ip->open('modules/fab/databases/IP-COUNTRY-REGION-CITY-LATITUDE-LONGITUDE-SAMPLE.BIN');
$uid = $client['id'];
$result = sql_query("SELECT * FROM `jcow_accounts` where ipaddress != '' order by lastlogin desc ");
$i = 0;
while($row = mysql_fetch_array($result)) {
$record = $ip->getAll($row['ipaddress']);
$id = $row['id'];
$lat = $record->latitude;
$long = $record->longitude;
$fab[] = array(
'id'=>$id,
'lat'=>$lat,
'long'=>$long,
);
}
Thanks







