Hi Team,

I am killing myself trying to do something simple: pass the variable
in the URL to my SQL query. This query is used to populate the XML
file, which contains the data for my map.

Please see my example here:

http://www.dsys.ca/testing/comprofile.php?Community_ID=50

I am sure (?!) the problem lies in the file
phpsqlajax_genxml_sites.php, which is basically a slightly edited
version of the Google tutorial file. (here: 
http://www.dsys.ca/testing/foo1.html)

My query is:
$query = "SELECT `Site_ID`, `Site_Name`, `Site_lat`, `Site_lon` FROM
tblSite WHERE `Community_ID` = $Community_ID";

If I replace $Community_ID with "50", everything works fine.

I've tried quite a few things, but my lack of understanding of so much
is making it difficult, lol. I had high hopes for GDownloadURL, but I
couldn't get it to work. I'm hoping it's a very simple fix.

Thanks so much in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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