jasonc310771
11-26-2008, 03:24 AM
i have an XML file which is used by a FLA flash movie.
i have changed the extention to PHP to allow me to get the info for the XML from mysql database.
but need to setup a variable with a username of the info i want to get, prior to the database being checked.
so i have one php file like so...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<? $owner = "Daniel"; ?>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="670" height="670">
<param name="movie" value="photoalbum_show_imagesV2a.swf">
<param name=quality value=high>
<embed src="photoalbum_show_imagesV2a.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="670" height="670"></embed>
</object>
</body>
</html>
the SWF file is a flash slideshow which gets the image details using the XML file... which i have renamed to be a PHP file.
get_image_names.php
<?php echo('<?xml version="1.0" encoding="utf-8" standalone="yes"?>'); ?>
<?php
include("dbconfigfile.php");
$xmls = @mysql_query("SELECT * FROM `photo_album_xmls` WHERE `owner` = '" . $owner . "'") or die(mysql_error());
?>
<images>
<?php
while($rows=@mysql_fetch_array($xmls)){
?>
<pic>
<image>http://www.domain.com/<?php echo($rows[url]);?></image>
<caption><?php echo($rows[desc]);?></caption>
</pic>
<?php
}
?>
</images>
but the variable 'owner' is the username and this for some reason does not get seen by the SWF file.
how do i embed this info into the <object> part so that the SWF file will use it to get the info need from the database.
i have changed the extention to PHP to allow me to get the info for the XML from mysql database.
but need to setup a variable with a username of the info i want to get, prior to the database being checked.
so i have one php file like so...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<? $owner = "Daniel"; ?>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="670" height="670">
<param name="movie" value="photoalbum_show_imagesV2a.swf">
<param name=quality value=high>
<embed src="photoalbum_show_imagesV2a.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="670" height="670"></embed>
</object>
</body>
</html>
the SWF file is a flash slideshow which gets the image details using the XML file... which i have renamed to be a PHP file.
get_image_names.php
<?php echo('<?xml version="1.0" encoding="utf-8" standalone="yes"?>'); ?>
<?php
include("dbconfigfile.php");
$xmls = @mysql_query("SELECT * FROM `photo_album_xmls` WHERE `owner` = '" . $owner . "'") or die(mysql_error());
?>
<images>
<?php
while($rows=@mysql_fetch_array($xmls)){
?>
<pic>
<image>http://www.domain.com/<?php echo($rows[url]);?></image>
<caption><?php echo($rows[desc]);?></caption>
</pic>
<?php
}
?>
</images>
but the variable 'owner' is the username and this for some reason does not get seen by the SWF file.
how do i embed this info into the <object> part so that the SWF file will use it to get the info need from the database.