Jump to content

Google map array question


sleis

Recommended Posts

Hi all,

Can someone help with the follow code :

I have download a google map code using php and mysql.... one of my database fields called "position"
with lat + lon coords

the google map is using two fields see below:

while ($currentrecord2 < $howmanyrecords2) {

$latitude = mysql_result($result2,$currentrecord2,"position");
$longitude = mysql_result($result2,$currentrecord2,"position");
$routesegment = mysql_result($result2,$currentrecord2,"depAptICAO");
$polytext[$routenumber][$routesegment] .= "new GPoint($longitude, $latitude),";
$segmentcounter[$routenumber] = $routesegment;
$currentrecord2++;
}


can someone tell me how get the $latitude + $longitude into one array so i can get the value from my position field

regards,

Sander
Link to comment
https://forums.phpfreaks.com/topic/4383-google-map-array-question/
Share on other sites

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.