jeger003 Posted August 15, 2010 Share Posted August 15, 2010 hey peeps, I am trying to get my site to display related youtube videos under the main video here is what i have $query=mysql_query("SELECT title,mp3ID,youtube_ID FROM songs ORDER BY RAND() LIMIT 10 ") or die("Error Occured"); $left = true; while($row=mysql_fetch_array($query)) { if ($left) { echo "<tr>"; } echo "<td align='justify' width='100%' cellspacing='2' cellpadding='2' >"; echo "<td><img src='http://img.youtube.com/vi/".$row['youtube_ID']."/default.jpg'></td>"; echo "<td nowrap><a href='/music.php?id=".$row['mp3ID']."'>".$row['title']."</a></td>"; echo"</td>"; if (!$left) { echo"</tr>"; } $left = !$left; } ?> this is basic info of how i am able to get youtube video titles and image....i want to use the same youtube.com video ID To get related videos please help!! Quote Link to comment https://forums.phpfreaks.com/topic/210804-i-want-php-to-work-with-youtube-brain-explode/ Share on other sites More sharing options...
sinista Posted August 15, 2010 Share Posted August 15, 2010 is this of any help? http://code.google.com/apis/youtube/2.0/developers_guide_php.html Quote Link to comment https://forums.phpfreaks.com/topic/210804-i-want-php-to-work-with-youtube-brain-explode/#findComment-1099633 Share on other sites More sharing options...
jeger003 Posted August 15, 2010 Author Share Posted August 15, 2010 it wasn't actually...i went up and down that page a million times...can't figure it out...it requires some sort of zend thingy maybe i just dont know how to read it Quote Link to comment https://forums.phpfreaks.com/topic/210804-i-want-php-to-work-with-youtube-brain-explode/#findComment-1099637 Share on other sites More sharing options...
jeger003 Posted August 16, 2010 Author Share Posted August 16, 2010 anyone have any ideas or any links i can look at? thanks Quote Link to comment https://forums.phpfreaks.com/topic/210804-i-want-php-to-work-with-youtube-brain-explode/#findComment-1099690 Share on other sites More sharing options...
YourNameHere Posted August 16, 2010 Share Posted August 16, 2010 LOL @ "zend thingy" Quote Link to comment https://forums.phpfreaks.com/topic/210804-i-want-php-to-work-with-youtube-brain-explode/#findComment-1099738 Share on other sites More sharing options...
trq Posted August 16, 2010 Share Posted August 16, 2010 The first link provided is your best bet. It is the documentation for the Youtube API. If you can't understand it, well, that's another issue. I suggest instead of looking for a quick fix you actually read through the documentation. Quote Link to comment https://forums.phpfreaks.com/topic/210804-i-want-php-to-work-with-youtube-brain-explode/#findComment-1099779 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.