Hello,
I'm trying to display an image in my Google Maps Infowindow. To this end i need a little further help setting up this variable:
var info = '<div id="info" style="text-align:left";><
img src="travel_pics/"' + id + '"/x_info.jpg" width=150 height=100><h3>' + title + '</h3><br>' + date + '</div>';
In particular i'm having difficulty with this part:
<img src="travel_pics/"' + id + '"/x_info.jpg"
I understand there's an issue because Javascript doesn't know what images are on the server, so this needs to be defined server-side in my php.
Please can you tell me what specifically i need to define in my php script and what needs to go in my javascript to make this work?
(i have attached both my javascript 'index.php' and my php script 'read.php' for your reference).
Many thanks
Start Free Trial