how do

Posted on 2008-11-18
Last Modified: 2012-05-05

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

Question by:Daniish
    LVL 6

    Accepted Solution

    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


    Author Comment

    Thank you for that Jimjo - that'll work perfectly.

    One last point though...

    I have the following call to read.php on line 170:"GET", "", 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?

    LVL 6

    Expert Comment

    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 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 or a problem with read.php.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Suggested Solutions

    Shoutout to Emily Plummer ( for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
    This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now