Hi,
I used this code before to make a dynamic xml, and it worked. however, it's not working now.
XML FILE:
<?php header('Content-type: application/xml; charset=utf-8'); echo '<?xml version="1.0" encoding="UTF-8"?>';
require_once "C:/xampp/htdocs/jubileehigh/cmsAdmin/lib/viewer_functions.php";
?>
<gallery>
<album title="Slide Show" description="Slide Show" lgpath="http://localhost/jubileehigh/cmsAdmin/uploads/" tnpath="http://localhost/jubileehigh/cmsAdmin/uploads/thumb/">
<?php
$uploads = getUploads('index', 'slideShow', $_GET['recordNum']);
foreach ($uploads as $upload)
{
?>
<img src="<?php echo ($upload['filename']); ?>"
title="<?php echo ($upload['info1']); ?>"
caption="<?php echo($upload['info1']); ?>"
link="<?php echo $upload['urlPath']; ?>"
alt="<?php echo $upload['info1']; ?>"
target="_blank"
pause="" />
<?php
}
?>
</album>
</gallery>
SLIDESHOW PAGE:
<?php
$slideShowXML = 'http://localhost/jubileehigh/images.xml.php?recordNum';
$slideshowRecord = $record['num'];
//new dBug($slideshowRecord);
?>
<script type="text/javascript">
if(typeof swfobject == "undefined"){
alert("The swfobject.js file is missing");
}else{
swfobject.embedSWF (
"assets/flash/homeFlash.swf", "homeFlash", "750", "381",
"7.0.0", "assets/flash/expressInstall.swf",
{ 'xmlPath':'<?php echo $slideShowXML ?>=<?php echo $slideshowRecord ?>' }, { 'wmode':'transparent' }, { 'id':'homeFlash','class':'flashClass' }
);
}
</script>
<div id="homeFlash" class="noFlash" style="height:79px; width:511px;">
<p>You must have JavaScript enabled and have the latest <a href="http://www.adobe.com/go/getflashplayer">Flash Player</a> installed to view this movie.</p>
</div>
Please help.