Movie Trailer Api result id html not responsive output

if(!$xml = simplexml_load_file($api_url_content))
echo “Error”;

foreach( $xml as $film ) {
$movie_name= $film->name,
$movie_poster =$film->poster;
$movie_id=> $film->did;
$movie_trailer='<iframe src=”    /’.$film->did.'” width=”720″ height=”480″ frameborder=”0″ allowfullscreen=”allowfullscreen”></iframe>';

INSERT INTO `trailer`.`trailers` (`id`, `name`, `description`, `poster`, `cast`,`embed`) 
 VALUES (NULL, '{$movie_name}', '{$movie_description}', 
'{$movie_poster}', '{$movie_cast}', '{$film->did}');


<?php $query=mysql_query("SELECT * FROM trailer Where id='{$_GET['id']}' Limit 1");
$fetch=mysql_fetch_array($query); ?>
<div style="width:100%">
<iframe src=”<?php echo $embed; ?>” frameborder=”0″ 

html code div responsive and player is not Responsive

How to Responsive Embed Code

output :

<div style="width:100%">
<iframe src=” x2pgbqt” frameborder=”0″ 

Source: xml

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.