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
https://forums.phpfreaks.com/topic/76906-help-needed/
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
https://forums.phpfreaks.com/topic/76906-help-needed/#findComment-389402
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.