Jump to content

help w/ PHP for Google Maps API


taneya

Recommended Posts

Hi,

 

I have limited knowledge of php. I am working on a Google Maps mashup using their API.  I am trying to generate a php script to produce an output as below so I can insert it into my file that drives the map. I need a row of space between each result. The parts in bold are the database field names to supply the variable.

 

var markermarkerNum = newGMarker(newGLatLng(latlng),markerOptionsmarkerOption);

map.addOverlay(markermarkerNum);

GEvent.addListener(markermarkerNum, "click",function()

{markermarkerNum.openInfoWindowHtml("><div style='font-size:80%;padding:5px;height:90px; width:330px;'><div style='float:left;padding-right:5px;'><img src='img'></div><a href='url' target='_blank'>name</a><br>location<br>years<br>contentType</div></div>");});

 

I started on my own and was able to configure the PHP script to generate the first two lines, but got stuck after that. I did the code for querying the db in my file, but I can't seem to figure out how to get the output configured correctly.

 

Is there anyone that may be able to help? or configure it for me? I don't think this would take a long time for someone who knows what they are doing. I just don't think I know enough PHP to problem solve.  I appreciate any help in advance.

 

Link to comment
https://forums.phpfreaks.com/topic/137833-help-w-php-for-google-maps-api/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.