Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

Dynamic Playlist in Clipbucket

General discussions related to php

Moderators: macek, egami, gesf

Dynamic Playlist in Clipbucket

Postby sherazkhan » Sat Jul 21, 2012 1:52 am

Hi all,
I am using flow player in homepage of my website for a static playlist. Now i am working on dynamic playlist which will pick all the uploaded videos from database and play continously them. For this, i have written this code
Code: Select all
playlist: [
      //{url: 'http://blip.tv/file/get/KimAronson-TwentySeconds59483.flv', duration: 20}
<?php
  // Set up server connection and open database, ready it for queries...
  $hostname='mysql16.000webhost.com';
  $username = "a3675993_12";
  $password = "ak75979836";
  $dbname = "a3675993_12";
  $dbConn = mysql_connect( $hostname, $username, $password );
  @mysql_select_db($dbname);
  //$PlaylistName="test Playlist1";  // Temporary test playlist for testing...
  $query="SELECT * from cb_12video='". $PlaylistName ."'";   // Query the database and load the current playlist
  $result = mysql_query ( $query, $dbConn);
  $row = mysql_fetch_row($result);
  $PlaylistData = $row[1];   //  NOTE: this is MY database setup $row{0}= playlist name , $row[1]= playlist data (Full playlist)
  mysql_close($dbConn);  // close database connection...
?>

When i activate this code, the flowplayer does not show on the homepage.. Can anybody help me for developing playlist code? For more information and stydy you can visit my website
http://www.scenicchannel.com
Waiting for a good response from all members..
sherazkhan
New php-forum User
New php-forum User
 
Posts: 3
Joined: Sat Jul 21, 2012 1:30 am

Return to PHP General

Who is online

Users browsing this forum: TurnitinBot [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.