Variable for swf to php, to load slideshow

I am working with a php programmer who has no knowledge of how Flash works. We want to use a .swf in a dynamic page on a webiste to load a slideshow. We want to use the same .swf to load different slideshows depending on which page a browser is requested. Basically this site is a tourism site and we want to allow members to upload their content and images to a MySQL database and when the page loads, a swf in their content page loads the correct images.

I can create a FLA with a placeholder which looks for an xml file to tell to where to find and load the images, but this is set up manually. I need some help (lots actually) to change the actionscript with a variable so php can read it and do its job.

Hope someone can help cos we’re stuck.