chitara Posted November 23, 2006 Share Posted November 23, 2006 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 https://forums.phpfreaks.com/topic/28193-jukebox/ Share on other sites More sharing options...
chitara Posted November 23, 2006 Author Share Posted November 23, 2006 why after submit the form my player is not openning.Its showing HTTP 404 Not Found. and that page properties showing >>Protocol :Unknown ProtocolType: Not AvailableConnection: Not EncryptedAddress: 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 https://forums.phpfreaks.com/topic/28193-jukebox/#findComment-128979 Share on other sites More sharing options...
marcus Posted November 23, 2006 Share Posted November 23, 2006 Post the full code Link to comment https://forums.phpfreaks.com/topic/28193-jukebox/#findComment-128981 Share on other sites More sharing options...
JasonLewis Posted November 23, 2006 Share Posted November 23, 2006 are you sure player.php even exists? Link to comment https://forums.phpfreaks.com/topic/28193-jukebox/#findComment-129049 Share on other sites More sharing options...
chitara Posted November 25, 2006 Author Share Posted November 25, 2006 $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 https://forums.phpfreaks.com/topic/28193-jukebox/#findComment-130025 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.