Friday, September 12, 2008

Mp3 player in PHP


function fnGetMp3Player($intMultimediaId, $strMultiMediaType, $hdlDb)
{
// write query to fetch record and get array
$arrTracksInfo = $hdlDb->queryAll($strTrackQuery,null,2);

$strPlayList = '';
$strPlayList .= '';
$strPlayList .= '';
$strPlayList .= '';
$strPlayList .= '';
if (is_array($arrTracksInfo) && count($arrTracksInfo) > 0)
{
foreach ($arrTracksInfo as $arrTracks)
{
$strFileName = stripslashes($arrTracks['podcast_file']);
$strFileTitle = stripslashes($arrTracks['title']);
$strTrackName = "FILE_PATH/$strFileName";

$strPlayList .= '';
$strPlayList .= ''.$strTrackName.'';
$strPlayList .= '';
$strPlayList .= ''.$strFileTitle.'';
$strPlayList .= 'Podcast';
$strPlayList .= '';
$strPlayList .= '';
$strPlayList .= '';
$strPlayList .= '';
$strPlayList .= '';
$strPlayList .= '';
}
}
$strPlayList .= '
';
$strPlayList .= '
';

return $strPlayList;
}

No comments: