Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. how to play songs which are in database

how to play songs which are in database

Scheduled Pinned Locked Moved Web Development
javascriptphpdatabasemysqldata-structures
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 9106259
    wrote on last edited by
    #1

    how to play list of songs selected which are in database can any one help to me **list.php**

    "; $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++){ ?>

    **play.php** Audio Player Demo //<![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" }); }); //]]>

    • [previous](javascript:;)
    • [play](javascript:;)
    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups