Create a list of video in PHP using query string? -
i want create list of youtube video tutorial. don't want create every single page every video, see many website using query string don't know how use show me example.
===index.php=== <html> <body <a href="tutorial.php?id=10">first tutorial</a> <a href="tutorial.php?id=11">second tutorial</a> <a href="tutorial.php?id=12">third tutorial</a> </body </html> ===tutorial.php=== <?php $id = $_get['1']; **//so how display page , video here? //how determine id=10, id=11, id=12.....** ?>
thanks
i suggest pass actual video id index page like,
<a href="tutorial.php?id=ozhvvougtom">first tutorial</a>
than can directly use id
youtube url,
$id = $_get['id']; $videolink = "http://www.youtube.com/watch?v=".$id;
Comments
Post a Comment