Click here to Skip to main content
15,905,558 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Web page font Pin
Peter_in_278028-Jun-12 3:39
professionalPeter_in_278028-Jun-12 3:39 
GeneralRe: Web page font Pin
User 171649228-Jun-12 3:15
professionalUser 171649228-Jun-12 3:15 
GeneralRe: Web page font Pin
Rage28-Jun-12 3:21
professionalRage28-Jun-12 3:21 
QuestionCloning a Site Help Pin
Leonidas Kaplan26-Jun-12 11:05
Leonidas Kaplan26-Jun-12 11:05 
AnswerRe: Cloning a Site Help Pin
R. Giskard Reventlov26-Jun-12 11:42
R. Giskard Reventlov26-Jun-12 11:42 
QuestionHow to secure my website? Pin
Jassim Rahma26-Jun-12 6:04
Jassim Rahma26-Jun-12 6:04 
AnswerRe: How to secure my website? Pin
R. Giskard Reventlov26-Jun-12 6:18
R. Giskard Reventlov26-Jun-12 6:18 
Questionhow to play songs which are in database Pin
Member 915215626-Jun-12 2:13
Member 915215626-Jun-12 2:13 
how to play list of songs selected which are in database
can any one help to me
**list.php**
<html>
<head></head>
<body>
<form action="play.php" method="post">
<?php
include("Db-Config.php");
echo "Songs List<br>";
$song_id[]=array();
$title[]=array();
$query1=mysql_query("select * FROM songs ");
while($result=mysql_fetch_array($query1)){
$song_id[]=$result['song_id'];
$title[]=$result['title'];
}
$len=sizeof($song_id);
$len1=sizeof($title);

for($i=1;$i<$len;$i++){
?>

<input type="checkbox" name="song[]" value="<?php echo $song_id[$i];?>"> <?php echo $title[$i];?><br>
<?php
}
?>

<input type="submit" value="play">
</form>
</body>
</html>
**play.php**
<?php
include("Db-Config.php");
$songid=$_POST['song'];
$len=sizeof($_POST['song']);
print_r($songid);
?>
<html>
<head>
<meta charset=utf-8 />


<title>Audio Player Demo </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="skin/blue.monday/jplayer.blue.monday.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.jplayer.min.js"></script>
<script type="text/javascript" src="js/jplayer.playlist.min.js"></script>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function(){

new jPlayerPlaylist({
jPlayer: "#jquery_jplayer_1",
cssSelectorAncestor: "#jp_container_1"
}, [


<?php
for($i=0;$i<$len-1;$i++){
$query1=mysql_query("select * FROM songs where song_id=$songid[$i]");
while($result=mysql_fetch_array($query1)){

?>
{
title:<?php echo $result['title'];?>,
mp3:<?php echo $result['url'];?>
//oga:<?php echo $result['url'];?>
}
<?php
}

}
?>

], {
playlistOptions: {
//autoPlay: true,
enableRemoveControls: true
},
swfPath: "js",
supplied: "oga, mp3",
wmode: "window"
});
});
//]]>
</script>
</head>
<body>

<div id="jquery_jplayer_1" class="jp-jplayer"></div>

<div id="jp_container_1" class="jp-audio">
<div class="jp-type-playlist">
<div class="jp-gui jp-interface">
<ul class="jp-controls">
<li><a href="javascript:;" class="jp-previous" tabindex="1">previous</a></li>
<li><a href="javascript:;" class="jp-play" tabindex="1">play</a></li>
<li><a href="javascript:;" class="jp-pause" tabindex="1">pause</a></li>
<li><a href="javascript:;" class="jp-next" tabindex="1">next</a></li>
<li><a href="javascript:;" class="jp-stop" tabindex="1">stop</a></li>
<li><a href="javascript:;" class="jp-mute" tabindex="1" title="mute">mute</a></li>
<li><a href="javascript:;" class="jp-unmute" tabindex="1" title="unmute">unmute</a></li>
<li><a href="javascript:;" class="jp-volume-max" tabindex="1" title="max volume">max volume</a></li>
</ul>
<div class="jp-progress">
<div class="jp-seek-bar">
<div class="jp-play-bar"></div>
</div>
</div>
<div class="jp-volume-bar">
<div class="jp-volume-bar-value"></div>
</div>
<div class="jp-time-holder">
<div class="jp-current-time"></div>
<div class="jp-duration"></div>
</div>
<ul class="jp-toggles">
<li><a href="javascript:;" class="jp-shuffle" tabindex="1" title="shuffle">shuffle</a></li>
<li><a href="javascript:;" class="jp-shuffle-off" tabindex="1" title="shuffle off">shuffle off</a></li>
<li><a href="javascript:;" class="jp-repeat" tabindex="1" title="repeat">repeat</a></li>
<li><a href="javascript:;" class="jp-repeat-off" tabindex="1" title="repeat off">repeat off</a></li>
</ul>
</div>
<div class="jp-playlist">
<ul>
<li></li>
</ul>
</div>
<div class="jp-no-solution">
<span>Update Required</span>
To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
</div>
</div>
</div>
</body>

</html>
Questionaudio list is not preparing,not playing Pin
Member 915215624-Jun-12 20:28
Member 915215624-Jun-12 20:28 
QuestionLoad page in scroll down in php website Pin
Member 915215621-Jun-12 18:14
Member 915215621-Jun-12 18:14 
AnswerRe: Load page in scroll down in php website Pin
Sandeep Mewara24-Jun-12 10:07
mveSandeep Mewara24-Jun-12 10:07 
QuestionClickable link in XSLT Pin
Member 915222021-Jun-12 4:48
Member 915222021-Jun-12 4:48 
Questionin XSLT - need to go to the folder when click Pin
Member 915222021-Jun-12 4:45
Member 915222021-Jun-12 4:45 
QuestionMVC PostBackURL Pin
AghaKhan20-Jun-12 19:52
AghaKhan20-Jun-12 19:52 
SuggestionRe: MVC PostBackURL Pin
Sandeep Mewara21-Jun-12 17:28
mveSandeep Mewara21-Jun-12 17:28 
GeneralRe: MVC PostBackURL Pin
AghaKhan21-Jun-12 21:19
AghaKhan21-Jun-12 21:19 
Questionfrom .dbf FoxPro to MySql Pin
Susy Nainggolan18-Jun-12 18:16
Susy Nainggolan18-Jun-12 18:16 
AnswerRe: from .dbf FoxPro to MySql Pin
enhzflep18-Jun-12 18:58
enhzflep18-Jun-12 18:58 
GeneralRe: from .dbf FoxPro to MySql Pin
Susy Nainggolan18-Jun-12 21:00
Susy Nainggolan18-Jun-12 21:00 
GeneralRe: from .dbf FoxPro to MySql Pin
enhzflep18-Jun-12 21:18
enhzflep18-Jun-12 21:18 
GeneralRe: from .dbf FoxPro to MySql Pin
Susy Nainggolan18-Jun-12 22:42
Susy Nainggolan18-Jun-12 22:42 
GeneralRe: from .dbf FoxPro to MySql Pin
enhzflep18-Jun-12 23:37
enhzflep18-Jun-12 23:37 
GeneralRe: from .dbf FoxPro to MySql Pin
Susy Nainggolan18-Jun-12 23:46
Susy Nainggolan18-Jun-12 23:46 
GeneralRe: from .dbf FoxPro to MySql Pin
enhzflep18-Jun-12 23:57
enhzflep18-Jun-12 23:57 
Questionweb service + soap+ xml Pin
moiamal18-Jun-12 2:52
moiamal18-Jun-12 2:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.