Guys

Thanks for that advice.

It looks like I'll go back to trying to implement the search
parameters into the GDownloadUrl function.

Rossko, your example looks a great place to start.

thanks again





On Mar 1, 10:03 am, Rossko <[email protected]> wrote:
> > For some reason I can't create an XML file for use by the GoogleMap
> > API as well as echo info onto the screen.
>
> I think the trouble may be that you are trying to do both at once.
> The example 
> athttp://code.google.com/apis/maps/articles/phpsqlajax.html#outputxml
> is purely about generating XML dynamically - a php script that when
> called returns a block of data 'looks like' an XML file.
>
> The general intention is that you have a webpage running the maps API
> that uses GDownloadUrl to request data from phpsqlajax_genxml.php and
> gets XML in return.  If you try to embed phpsqlajax_genxml.php as-is
> in the middle of another script that generates a webpage, it won't
> work very well.
> The idea of having seperate webpage and data-feed script is perhaps
> clearer in this 
> examplehttp://code.google.com/apis/maps/articles/phpsqlsearch.html
>
> You could modify the techniques shown in phpsqlajax_genxml.php to
> output a single webpage with the data embedded in it, but you have to
> do more work e.g. you can't output a header from php in the middle of
> a page.

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