• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

how do


Not too sure on the correct terminology but...

Markers for my site are constructed with a series of attributes using PHP (see attached), one of which is reg_id. I would like to use the reg_id of the current marker to retrieve the following (where reg_id = id):


This will allow me to build the following function dynamically:
GEvent.addListener(map, 'infowindowclose', function() {
                          map.panTo(new GLatLng(55.986092, 10.656738));

Any chance someone can look at my site & let me know how this is done?

Many thanks

  • 2
1 Solution
James LooneySr. Programmer/AnalystCommented:
the column name is reg_id right? if so, try this in place of your line #35

$lreg = mysql_query("SELECT lat,lng,maxzl,icon FROM regions WHERE reg_id = ".$locations['reg_id'].";") or die(mysql_error());

Open in new window

DaniishAuthor Commented:
Thank you for that Jimjo - that'll work perfectly.

One last point though...

I have the following call to read.php on line 170:
request.open("GET", "http://www.globexposure.net/includes/read.php", true);

meanwhile, the function where i'd like to call on this query is on line 107 - will i have access to the file, of not how do i fix this?

James LooneySr. Programmer/AnalystCommented:
Hmm, not sure I understand. You may want to have read.php just send back a test message like "I'm Here" so that you know whether or not the request.open line is executing correctly and getting back the info from read.php. If it does, then you should at least know if it's a problem with the request.open or a problem with read.php.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now