1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

help : mp3 flash playlist

Discussion in 'PHP' started by zuhairtaha, Jul 15, 2010.

  1. #1
    Hello,
    I need mp3 flash playlist to play mp3 files in a list,
    I found many of it, but all of them take the mp3 list from xml file, and what I need is to give the list from mysql data base or php file...
    please help me...
    I'm waiting for reply soon.
     
    zuhairtaha, Jul 15, 2010 IP
  2. Rainulf

    Rainulf Active Member

    Messages:
    373
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    85
    #2
    You can start by learning some basics of mysql and php. :)

    But in any case, you need to put more information. Why would like to list it from mysql rather than xml? Do you already have a database or something? XML makes things easier, that's why a lot are listing it from xml.
     
    Rainulf, Jul 15, 2010 IP
  3. zuhairtaha

    zuhairtaha Greenhorn

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    thank you very much for your reply,
    I have good skills in php,mysql
    and I want to give opportunity for members in the website to make there list from mp3 files and to edit it, and the better way is using mysql+php but I couldn't found any mp3 flash list player to do that... all of them use xml file...
    I wish anyone to help me.
    thanks alot :)
     
    zuhairtaha, Jul 15, 2010 IP
  4. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #4
    If you already have an mp3 player, why dont you just output the SQL data to XML and use that?
     
    lukeg32, Jul 15, 2010 IP
  5. zuhairtaha

    zuhairtaha Greenhorn

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #5
    It's not bad to do it, but I prefer to output the data from mysql db.
    because if I did it I will have alot of xml files after a while..
    thanks a lot for your post.
    I wish the others to share us there ideas.
     
    zuhairtaha, Jul 15, 2010 IP
  6. wassim

    wassim Well-Known Member

    Messages:
    322
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    110
    #6
    use AMFPHP and fetch the data from the database as XML and feed it to the player. That's it.
     
    wassim, Jul 15, 2010 IP
  7. dbsuk

    dbsuk Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You could do something like:

    XML Page: myplaylist.php?playlist=1

    Get the playlist rows from the DB and format the output into whatever XML is required by the MP3 Player.

    So that the output from myplaylist.php?playlist=1 would be something like:

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <mp3s>
    <mp3>
    <name>First Song</name>
    <url>http://somesite.com/mp3s/firstsong.mp3</url>
    <tags>first song</tags>
    </mp3>
    <mp3>
    <name>Second Song</name>
    <url>http://somesite.com/mp3s/secondsong.mp3</url>
    <tags>second song</tags>
    </mp3>
    </mp3s>
     
    dbsuk, Jul 15, 2010 IP