Hello Everyone,
I'm stumped. I am trying to figure out how I can make this photo gallery work.
I have a Flash photo gallery which is XML driven. Right now the .SWF is directed to a PHP file that is pumping out the XML. The XML need to be dynamically generated based on the users selection.
The .SWF sits in a <div> on a PHP page. All page content is coming from a MySQL database. The page pumps out photo thumbs. Each photo thumb represents a series of photos that fall under a particular category. When the user clicks on a thumb I want the flash file to reload (reloading the XML file that is written by the PHP) and display the series of photos that are associated with the thumb. I hope this makes sense.
So, I see it happening one of two ways, but maybe there is a better way.
Way 1)
I can reload the entire page by sending a variable to the current page and a varialble to the PHP file that is pumping out the XML. However, I don't know if I can do this or if I am doing it right. Here is the code that pumps out the thumbs:
while ($img=mysql_fetch_array($getFlash)) {
echo "<a href=\"services.php?services_id=".$img['services_id']."?flash_id=".$img['services_id']."\"><img src=\"flash/thumbs/".$img['services_thumb']."\" width=\"70\" height=\"50\" border=\"0\" /></a>";
}
The actual link would look like this:
services.php?services_id=3?flash_id=7
Can I pass 2 variable like this to 2 pages?
I don't really see how the current page and the PHP/XML page can both be sent variables. Is this possible?
Way 2)(this makes more sense)
Can I just reload the PHP/XML file and the .SWF?
How would I do this? Javascript?
Here is a link to the page for a visual example.
http://madsendesignco.com/build/services.php?content_id=7
Thank in advance for your time.