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

 

a lot of java script will be used. i think so ...

 

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 should 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

Link to comment
https://forums.phpfreaks.com/topic/76913-help-needed/
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.