Hey
Im having a bit of trouble due to creating a media player playlist and using xml to input the directory variables to flash. I haven't really used xml much apart from that.
Anyway...
I need the variables from my XML file in a variable ready to print in php on my website.
If you don't understand have a look at the code and Im sure you will...
playlist.xml
<?xml version="1.0" encoding="utf-8"?>
<PLAYLIST>
<SONG URL="track1.mp3" TITLE="song title 1" ARTIST="artist 1"/>
<SONG URL="track2.mp3" TITLE="song title 2" ARTIST="artist 2"/>
<SONG URL="track3.mp3" TITLE="song title 3" ARTIST="artist 3"/>
</PLAYLIST>
Playlist.php
echo "You currently have * number of songs on your playlist";
echo "<br>";
* I'd like to be able to count the amount of songs in the playlist.. and then print out simple a-href's for each of the files like such:
<a href='SONG URL'>SONG TITLE - SONG ARTIST</a>
Any help here would be greatly appreciated.
Thanks in advanced!