David,
You either need to pass the variables in the url or cal them from your
included php script.
Check code examples for google map with php mysql.
Without your code it's hard to see what's wrong.
Martin


On 6/05/10 12:21 AM, "David K-C" <[email protected]> wrote:

> Hi Everyone,
> 
> I have a list of longitudes and latitudes stored in a mysql database
> that I want to display when a certain record is accessed.
> 
> I have tried to include the php variables inside the map javascript
> like this:
> 
>     var hlat = '<?php echo $lat; ?>';
>     var hlng = '<?php echo $lng; ?>';
> 
> but this does not seem to work. Can anyone explain how I'd do this and
> where I'm going wrong?
> 
> My example page can be found at:
> 
> http://www.hotelsukonline.com/test/liverpool-hotels/hotel-map.php?id=421bf249f
> ceb9182f403
> 
> Thanks in advance for the help....


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

Reply via email to