Get the address of the song from the database or other means through php, and then
lt;embed width="300" height="60" border="0" autostart="false " loop="true" src="lt;?php echo $url ?gt;"gt;lt;/embedgt;
Isn't that enough? Or do you mean something else?
____________________
Search for a player made of js, and then use php to generate the js code to generate the playlist