Ok, I have a php/mysql backend for the user to upload and categorise their images. A thumbnail is automatically created and the following details are stored in the database:
id, title, description, filename, thumbnail_filename, category, tags
I already have the the php working for the gallery, with, for example a user clicking on "portrait", php returns the images from a statement such as
SELECT * FROM gallery WHERE category = portrait
The images are then echo'd out as list items, eg:
<li><?=$title?><br />
<img src="<?=$filename?>" />
</li>
This is all working fine, but I want to have these images in a flash file. I understand I need to echo these variables into Flash, but what's the best way of doing this. and how do I loop through each result and display each picture in Flash?