473,890 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

can't play music

4 New Member
code.poet


Group: Members
Joined: 16 Dec, 2005
Posts: 64


My Contributions



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.
my files are as follows>>>

my first file>> playlist.php

***[
<form name=fp action="player. php" method="POST" enctype="audio/mpegurl">

<table width=100% align=left>
<?

$query="select * from musiclibrary where music_no='$id' order by music_no desc";
$result=mysql_q uery($query);
$count=mysql_nu m_rows($result) ;


if( empty( $count ) )
{
echo "<BR>&nbsp;&nbs p;Song is not available<BR>&n bsp;&nbsp;in this category.";

}
else
{
while($rows=mys ql_fetch_array( $result)){

?> <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']; var_dump($rows['music_no']);?>
</td>
</tr>

<?

}

}


?>

</table>
</div>
<div id="Layer6" style="position :absolute; width:55; height:23; z-index:5; left: 208px; top: 249px">
<input type="hidden" name="track[]" value="<? echo $rows['music_no']; ?>">
<input type=image name=play src="../images/button_playlist .gif" width="55" height="23" border=0>

</div>
</form>

]***


My second file >> player.php
***]
<?

include "../admin/include/db.php";

$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_arr ay($result, MYSQL_NUM))
{
$result_array[] = $mdir."/".$row[3]."\n";

}

mysql_free_resu lt( $result );
}else{
echo'error';
}
?>


<html>
<head>
<title>Player </title>
</head>
<body bgcolor="#FFFFF F">



<title>player </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaS cript">
<!--
function MM_reloadPage(i nit) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Net scape")&&(parse Int(appVersion) ==4)) {
document.MM_pgW =innerWidth; document.MM_pgH =innerHeight; onresize=MM_rel oadPage; }}
else if (innerWidth!=do cument.MM_pgW || innerHeight!=do cument.MM_pgH) location.reload ();
}
MM_reloadPage(t rue);
// -->
<!--</script>
</head>

<div id="Layer1" style="position :absolute; width:300; height:300; z-index:2; left: -2px; top: -2px; background-color: #000000; layer-background-color: #000000; border: 1px none #000000">


<OBJECT ID="MediaPlayer " WIDTH=300 HEIGHT=300
classid="clsid: 22D6f312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loadin g Media Player components"
TYPE="applicati on/x-oleobject"
codebase="http://activex.microso ft.com">

<PARAM NAME = "autostart" VALUE = "True" >
<PARAM NAME = "filename" VALUE = "<?print $result_array [i am confuse abuot this value];?>" >

</OBJECT>


</div>

</body>
</html>
<script>

]***

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
Nov 23 '06 #1
1 1812
chitara
4 New Member
Please response!!!

Am i in right way or there is something that I left????


Is there any alternaive way that I can do it???




Regards
Dec 3 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2340
by: charbonneau | last post by:
I need to develop a WinForm application which can play .mp3 music files stored on another machine on a LAN. This applicaiton needs to run on servaral different client machines at the same time. I want to have complete control over the UI - no visibly embedded Media Player if possible. I also need to be able to programatically stop/play/pause/resume/change volume/change songs. Any ideas on how to do this? Do I need some sort of...
2
2675
by: Con | last post by:
Hi, I'm getting the following error message in the JavaScript console: Error: mus has no properties Source File: file:///G:/temp/cafedub.htm Line: 35 Now, I would like to script to work in both IE 6 and Netscape 7. The goals of the script are as follows: o when a music image is clicked, please the associated music without
5
1819
by: gregrjones | last post by:
I'm a musician who has a web site. I'd like to provide visitors of my web site with the means of streaming music off of my web site as one would if they were listening to a radio station. However, I don't want them to be able to download the songs that they are listening to from my site. What would the best means of accomplishing this?
1
3435
by: dlarsson | last post by:
Music CD experts: So, here's my problem. I burned (or tried to burn) my first audio or music CD on my computer using Windows Media Player. I "Rip-ed" the tracks from a source CD and then put
2
2838
by: cody | last post by:
Does anybody know how to play MIDI files? I do not want to use P/Invoke or DirectX. Maybe there is a free 3rd party Library but I do not know any supporting MIDI music. I tried the library "Bass" from www.un4seen.com but MIDI music isn't supported.
3
9780
by: Hai Ly Hoang | last post by:
I want to play a piece of music in .NET application How to do that ? Thanks a lot !
20
3275
by: Stephen Kellett | last post by:
Hi Folks, How can I play midi and/or audio files using JavaScript? I'm hoping there are some calls/APIs I can use that I am unaware of. My JavaScript book from O'Reilly seems rather lacking in this area. I'm looking for something like: playMidiNote(pitch, duration); playSoundFile(soundFileURL);
1
5079
by: czi02 | last post by:
I love music and I dont know on how to play my music with visual basic. Would you help me? Thanx.
9
3604
by: ZikO | last post by:
Hi. I'm struggle with playing a wav in Visual Basic. First I wanted to use My.Computer.Audio.Play() method but I realized it's not working if I want to have music in background. I found in internet SoundPlayer Class but unfortunately I can't find it in my Visual Studio Application. Whenever I try to use it Dim Player New SoundPlayer ...
10
7084
by: andrew.smith.cpp | last post by:
Hello :-) how can i play a ".wav" file in C++.means with the help of the C++ code i just want to play a "a.wav" file more then 10 times. i just want to play background music. Can i do it in C++ ? if yes then how ? Thanks
0
9976
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
11215
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10802
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10908
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10451
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5835
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6035
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4665
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3267
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.