# PHP/xml/flash and dynamic data

**URL:** <https://forum.kirupa.com/t/php-xml-flash-and-dynamic-data/185295>\
**Category:** programming\
**Created:** [April 12, 2006, 9:03am UTC](https://forum.kirupa.com/t/php-xml-flash-and-dynamic-data/185295 "2006-04-12T09:03:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeRu](https://avatars.discourse-cdn.com/v4/letter/n/d2c977/32.png) [@NeRu](https://forum.kirupa.com/u/NeRu)\
**Post date:** [April 12, 2006, 9:03am UTC](https://forum.kirupa.com/t/php-xml-flash-and-dynamic-data/185295/1 "2006-04-12T09:03:57Z")

</div>

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

```php
$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

---

<div class="post-metadata">

**Author:** ![NeRu](https://avatars.discourse-cdn.com/v4/letter/n/d2c977/32.png) [@NeRu](https://forum.kirupa.com/u/NeRu)\
**Post date:** [April 12, 2006, 8:26pm UTC](https://forum.kirupa.com/t/php-xml-flash-and-dynamic-data/185295/2 "2006-04-12T20:26:32Z")

</div>

actually i have solved problem by myself 🙂

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

```php

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

```auto

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

```

=)
