how do

Hello,

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):

region.getAttribute("lat")
region.getAttribute("lng")
region.getAttribute("minzl")

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

Any chance someone can look at my site & let me know how this is done?
www.globexposure.net/index_original.php


Many thanks

read.php.txt
DaniishAsked:
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

0

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:
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?

Cheers
0
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.
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.