Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Attention PHP Coding Gurus
#7
Make an array of yt ids , loop them, use it to store titles or descriptions if you want.
Then have the link pass it via querystring to a video page ises its own ID to get the video id ( to avoid querystring poisoning attacks ) and then do your thing.

the rest is basic web design, same page list if not a videoid else show video etc.

this is not functioning code
PHP Code:
$array = array(
'video1' => array('123412342','title','description'),
...
);

// show a list
foreach($array as $video){
echo 
"<a href=\"url?videoid=".$video[0]."\">".$video[1]."</a></br>";
}

// video page 
if isset($_get['videoid']){
embed blah blah videourl?$array[$_get['videoid']][0]

NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply


Messages In This Thread
Attention PHP Coding Gurus - by saint - 2013-11-13, 11:51:56
RE: Attention PHP Coding Gurus - by datiswous - 2013-11-14, 10:20:04
RE: Attention PHP Coding Gurus - by saint - 2013-11-14, 15:19:22
RE: Attention PHP Coding Gurus - by datiswous - 2013-11-15, 09:25:24
RE: Attention PHP Coding Gurus - by saint - 2013-11-15, 10:59:39
RE: Attention PHP Coding Gurus - by Carlos - 2013-11-14, 16:40:14
RE: Attention PHP Coding Gurus - by shawn_a - 2013-11-16, 00:09:57
RE: Attention PHP Coding Gurus - by saint - 2013-11-20, 12:55:48



Users browsing this thread: 1 Guest(s)