Jump to content

jukebox


chitara

Recommended Posts

Hi there!

I have created a playlist with multiple checkbox for a jukebox.

now I want to play this or these song in a player that I customized that will hld the value of those selected track. say like..

<PARAM NAME = "filename" VALUE = "<?print "=value of selected track";?>" >

I've stored those tracks in a folder & name in a table.

my list file is like.....

**[

<form name=fp action="player.php" method="POST" enctype="audio/mpegurl">
<tr>
             <td width=25% align=center>
                <input type=checkbox name="track" value="<? echo $rows['music_no']; ?>">
             </td>
             <td width=75% align=left>
                <? echo $rows['music_name']; ?>
             </td>
           </tr>

<input type=image src="../images/jukebox/button_playlist.gif" width="55" height="23" border=0>

]***

my table format is like .....

CREATE TABLE `musiclibrary` (
  `music_no` int(11) NOT NULL auto_increment,
  `music_name` varchar(100) default NULL,
  `file_name` varchar(100) default NULL,
  `music_day` decimal(10,0) default NULL,
  `cat_id` decimal(10,0) default NULL,
  PRIMARY KEY  (`music_no`),
  UNIQUE KEY `music_no` (`music_no`),
  KEY `cat_id` (`cat_id`)
);

please tel me how'll I do that!!



Regards
Link to comment
Share on other sites

why after submit the form my player is not openning.

Its showing HTTP 404 Not Found. and that page properties showing >>

Protocol :Unknown Protocol

Type: Not Available

Connection: Not Encrypted

Address: res://C:\WINDOWS\system32\shdoclc.dll/http_404.htm#http://localhost/...
(URL)

and ba bla bla.

Please say something!!!


Is there anyone???


Link to comment
Share on other sites

$file=$_GET['track'];

$result = mysql_query( "SELECT music_no, music_name, file_name FROM musiclibrary where music_no='$file'" );
//$count = mysql_num_rows( $result );
if  ($result){
while($row = mysql_fetch_array($result, MYSQL_NUM))
{
$result_array[] = $mdir."/".$row[2]."\n";

}
var_dump($row);
mysql_free_result( $result );
}else{
echo'error';
}

why the value of $result_array[] is null???

What's my wrong??

please tell me!!!
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.