PHP/xml/flash and dynamic data

i want to use kirupa’s photo gallery with a database, for xml parsing i am using the Jubba’s mysql-php-xml tutorial. For one gallery the result was perfect but i have more than one gallery and for the database access i am using the query in my images.php file as follows

$query= "SELECT * FROM gallery WHERE galleryID=".$_GET['galleryID']." ORDER BY imageOrder ASC";

the rest is the same as the Jubba’s example in the tutorial. and i’m recalling the gallery.swf in index.php with and address as index.php?galleryID=XX

the problem is i cannot get the gallery id from the address for generating the xml output in images.php

my files
images.php => generates the xml from the database
gallery.swf => recalls images.php for xml data for the images
index.pnp => recalls gallery.swf

actually i have solved problem by myself :slight_smile:

first i recall swf by the gallery id :slight_smile: in the index.php
as


gallery.swf?galleryID=<?php echo $_get['galleryID']; ?>

than i recall this gallery id in the action script and add to the xmldata.load address as


link = galleryID;
...
xmldata.load("images.php?galleryID="+link);

=)