30-04-2013, 09:49 AM
ماتم اضافته ايجاد موقع سارق الجهاز وذلك من خلال اخر تقرير 'ip_logs'
PHP كود :
var latlng = new google.maps.LatLng(<?php echo get_xy(); ?>); //Set the initial coordinates for the map
PHP كود :
function get_xy(){
$select = mysql_query("select `longitude`, `latitude` from ip_logs where `id`= (
SELECT max(id) FROM ip_logs
) ");
$row_users = mysql_fetch_assoc($select);
return $row_users['longitude'].','.$row_users['latitude'];
}


![[-]](https://delphi4arab.net/forum/D4A2020/collapse.png)