Insert youtube in a page

Hi everyone

I’m building a movie database. One of the fields is “trailer”, which contains the youtube url of the trailer.

When I click on the title of a movie in my menu, it is supposed to return me the director, year, genre, length, actors, etc And this works fine right now

I would like also embed a youtube object to display the url in the field “trailer”, but I have no idea how to do that …

Does anybody have any idea how to do that ?

Thanks a lot in advance

ok lets pretend that your movie database has a field called"youtube" which stores all the video id’s of the movie clips inside a table is called “movies” and you are using url’s like “gettrailer.php?movieID=123”. So do your get down like this:
[php]
$getid=strip_tags($_GET[‘movieID’];
$getid=mysql_real_escape_string($getid);

$a=mysql_query(“SELECT * FROM movies WHERE id=$getid”);
$b=mysql_fetch_assoc($a);
$vid="{$b[‘youtube’]}";
echo"

"; [/php] then once you do that you have to make sure and comeback to this page and click on that little +1 karma button on the left over there 8)

Thanks a lot buddy !

Sponsor our Newsletter | Privacy Policy | Terms of Service