palylist for every user

Discussion in 'PHP' started by hanbal, Jun 16, 2010.

  1. #1
    i just have make a little music script my first one;)
    http://www.hostrox.com/proj

    i want that every users after registering can make their own palylist
    but i don't know how exactly i fetch all sogns from ONE COLUM one by one
    like
    songs1.mp2 : songs3.mp3 :songs4
    these are save in one colum of playlist of users
    which are separet with sami colums
    now i want to fetch them one by one in the shape of playlist when user login
    thanks
    & any more idea to improve my script
    :confused:
     
    hanbal, Jun 16, 2010 IP
  2. imperialDirectory

    imperialDirectory Peon

    Messages:
    395
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    how about something like this?
    
    <?php
    $play_list = 'songs1.mp2 : songs3.mp3 : songs4';
    $songs = explode(' : ', $play_list);
    $song_counter = 0;
    
    foreach ($songs as $song)
    {
        echo (++$song_counter) . ') ' . $song . '<br />';
    }
    ?>
    
    Code (markup):
     
    imperialDirectory, Jun 16, 2010 IP