Thanks for all your help got it working now.
Andrew in answer to your question all the referring pages have a
numerical id so I thought of extracting the id from URL, which relates
to the id in the database:-
<?php
$referer = $_SERVER['HTTP_REFERER'];
preg_match('{(\d+)}', $referer, $m);
$id = $m[1];
?>
Then use the variable in the sql query in the phpsqlajax_genxml3.php:-
$query = "SELECT name,address,type,lat,lng FROM resttest WHERE `id` = `
$id`";
But I haven't figured out how to pass $id to phpsqlajax_genxml3.php
but it works with just adding id = 1?
http://www.eatout.co.im/id1.htm
Cheers
Graham
On Jan 2, 11:59 pm, Andrew Leach <[email protected]>
wrote:
> On Jan 2, 9:35 pm, "eatout.co.im" <[email protected]> wrote:
>
>
>
> >http://www.eatout.co.im/phpsqlajax_map.htm
>
> Yes. You can remove the first setCenter statement, and then make sure
> the second one is positioned before the addOverlay. You'll need to
> include the zoom in the [second] setCenter statement.
>
> I'm intrigued about how you ensure the right marker details are
> returned from your php when it doesn't get any arguments to help the
> selection.
>
> Andrew
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.