Newbie question re. flash photo gallery + XML/PHP/MySQL

Hi there

I’m a newbie wrt. flash/php, and am trying to develop a dynamic photo gallery for my wife’s photography site. I’ve written a very basic PHP admin site to upload/resize images and generate thumbnails to a folder, and write an entry to MySQL DB with path to images, and the image category, which will allow my wife to easily update the images on the site.

I’ve been looking for a way for Flash to call a PHP script to randomly select a few images (to keep the content fresh) from each category from the DB, and pass these to Flash (either by generating an XML file or directly to Flash). It won’t be tonnes of images - probably about 30 or so each time the Flash object runs.

Just wondering what the best way is to do this (with fastest load times as i live in a bandwidth-challenged country). Sorry to post about what’s probably a common topic, but i haven’t managed to find exactly what i’m looking for so far and would appreciate any advice.

Thanks!
Ray