473,770 Members | 2,136 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 1802
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
2330
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
2669
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
1813
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
3429
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
2830
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
9771
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
3264
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
5067
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
3600
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
7071
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
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10260
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
10101
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
10038
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
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6712
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
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.