This is a PHP question, not a maps question.

In your AJAX call, instead of just calling the url you can add a "GET"
parameter with the name of the database you want to invoke.  In your
PHP program you just retrieve that parameter (you'll use the $_REQUEST
variable, or others provided by PHP) and switch to that database.

The article you cited has links to almost everything you need (how to
make an AJAX call, how to use PHP to select a database ...).

Good luck!

_ jeff

On Mar 28, 7:48 pm, "Ron R." <[email protected]> wrote:
> I have a quick question and was hoping someone  could point me in the
> right direction.
>
> I have a map that uses php /mysql via downloadUrl. It is working great
> but there is something i'd like to add and can not figure out.
>
> It is set up like the example in the following 
> articlehttp://code.google.com/apis/maps/articles/phpsqlajax_v3.html.
>
> The map's downloadUrl uses phpsqlajax_genxml3.php which requires my
> user name, password and database name in a separate php
> file(phpsqlajax_dbinfo.php) like suggested in the article.
>
> What I want to do is add a drop down menu that will allow me to change
> the database name and reload the new xml and I cant figure this out??
>
> Any suggestions?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to