title: Using PHP in a Javascript music player playlist
body: <p>I've been working on a music player that's quite simple and to add music to it you would have to upload it to Dropbox and then manually edit the file (in this case index.php) where the playlist is held.The player then plays the links.
  But what I've done is made a file which inserts value through mysql into the database.Two columns:</p>
  
  <pre><code>songname, url
  </code></pre>
  
  <p>Index.php:</p>
  
  <pre><code>`$(document).ready(function(){
  
  var myPlaylist = new jPlayerPlaylist({
      jPlayer: "#jquery_jplayer_N",
      cssSelectorAncestor: "#jp_container_N"
  }, [
  {
          title:"C O O L",
          artist:"Le Youth",
          mp3:"this is where the link must sit",
  },`
  </code></pre>
  
  <p>How can I implement PHP query that selects the name and the link from database into that part of javascript code?</p>
  
  <p>I'm sorry if there's some unclear things for you, please ask I will try to make everything clear.</p>