Jump to content

[SOLVED] Need help with coding


Leadfoot

Recommended Posts

I'm very new to PHP and I am trying to get a youtube video to showup on my web page.

I have a script that will display the thumbnail and a discription, but I would like to display the video.

 

I can link this way

 <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/ch7LGKVYm58"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/ch7LGKVYm58" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object> 

 

I would like to display a random video using this type of link.

 

the video display code in the script is

 //video display options
	for($i = 0; $i<$howmany; $i++){

		print "<p><a href=\"".$url[0][$i]."\" target=\"_blank\"><img src=\"".$thumb_nail[0][$i]."\"></a>".$description[0][$i]."</p>"; 

	}

 

I hope I explained it ok

Thanks

Keith

Link to comment
https://forums.phpfreaks.com/topic/42740-solved-need-help-with-coding/
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.