hey…
im trying to display an swf stored on my database… anyone knows how to do this?
im working on a photogallery and every album is store in the database as a blob field
im using this code and its not working:
this is the object tht calls the flash
*------------------------------------
<object classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” codebase=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0” width=“555” height=“500”>
<param name=“movie” value=“picture_movie.php?id=<?php echo $id;?>”>
<param name=“quality” value=“high”>
<embed src=“picture_movie.php?id=<?php echo $id;?>” quality=“high” pluginspage=“http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash” type=“application/x-shockwave-flash” width=“555” height=“500”></embed>
</object>
this is the file picture_movie.php called
<?php
require_once(‘config_picture.php’);
$q = 'SELECT swf_evento FROM perfect WHERE ID = '.mysql_real_escape_string($_GET[‘id’]);
$r = mysql_query($q) or die(mysql_error().$q);
header(“content-type: application/x-shockwave-flash”);
list($data) = mysql_fetch_assoc($r);
echo $data;
}
?>
please anyone… im stuck