Results 1 to 2 of 2

Thread: help needed!!!!

  1. #1
    Join Date
    Nov 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question help needed!!!!

    i have a list of songs,any one of thm can b played , which are taken from my database
    "listen" button is used to open my mp3 player in a new window with the help of java script function "open_win()"

    i think java script has the solution ...
    does it?

    echo " <table border='0'>
    <tr>
    <th>Creator</th>
    <th>Name</th>
    <th>Type</th>
    <th>Description</th>
    <th>Date</th>
    <th>Time</th>
    <th>Rating</th>
    </tr>";

    while($row = mysql_fetch_array($result))
    {
    echo "<tr>";
    echo "<td>" . $row['UserName'] . "</td>";
    echo "<td>" . $row['CName'] . "</td>";
    echo "<td>" . $row['Type'] . "</td>";
    echo "<td>" . $row['CDescription'] . "</td>";
    echo "<td>" . $row['Date'] . "</td>";
    echo "<td>" . $row['Time'] . "</td>";
    echo "<td>" . $row['Avg'] . "</td>";

    //$_SESSION['url']=$row['Url'];


    echo "<td>"?><input type=button value="Listen" onclick="open_win()"/><?php "</td>";

    echo "</tr>";
    }


    echo "</table>";


    i want to transfer the "url" of tht song to the player window.
    i cant use sessions coz every time the same song will be played even if i click a diifernt listen but on of some other song.
    when a viewer visit tht page , he must be able to listen the corresonding song with the click of the "listen" button.
    how shuols i proceed.
    wht other method can be used and how it can be used


    u can take an example like online music listening.........
    where from a big database all songs info is loaded on a single page thn when u click on one a new window open in which u can hear tht song and aftr closing it u can hear sum other song.

    any1 can help me.................
    sushant kaura

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    This has already been posted. Only post once.
    http://www.dynamicdrive.com/forums/s...ad.php?t=26544
    Last edited by djr33; 11-11-2007 at 10:49 PM.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •