Jump to content

help diplaying swf from mysql


alexguz79

Recommended Posts

hey... i posted this before and i'm having problems.... can't figured out how to do this...

 

the swf on my database is no loading on the site

 

im using this code and its not working:

 

this is the object tht calls the flash

 

*------------------------------------

 

<object classid="clsid27CDB6E-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

Link to comment
https://forums.phpfreaks.com/topic/98156-help-diplaying-swf-from-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.