Jump to content

help needed !!!


sushantkaura

Recommended Posts

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()"

 

 

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

 

 

any1 can help me.................

sushant kaura

Link to comment
Share on other sites

There's really no need to bumb after half an hour.

 

Anyway, it looks like this is more to do with the javscript you're using. I've no idea how that works, so i can't say if it's possible to pass the song url to the player. Hopefully, you could simply add a parameter to your open_win() function, which contains the url.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.