...

View Full Version : Dynamic Playlist in Clipbucket using flowplayer



sherazkhan
07-21-2012, 11:12 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


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.***************';
$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..



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum