Save and query from mySQL on another URL?

I have two domains. I’d like to allow domain A to be able to save and query a mySQL database on domain B. The php scripts and the mySQL are both on domain B. The object making the queries from domain A is a flash file that is accessing the data via sendAndLoad (the .php returns .xml).

Is there something like a crossdomain policy that I can setup to allow this access?

On server A you can setup a php file to simply echo the results from a php file on server B (as long as allow_url_fopen is true)…

[quote=nburlington;2334346]I have two domains. I’d like to allow domain A to be able to save and query a mySQL database on domain B. The php scripts and the mySQL are both on domain B. The object making the queries from domain A is a flash file that is accessing the data via sendAndLoad (the .php returns .xml).

Is there something like a crossdomain policy that I can setup to allow this access?[/quote]

If you need to query from flash to another domain, you need a crossdomain.xml file. See here for more details.