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

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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:"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?

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 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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.