pieter-jan Posted January 16, 2010 Report Share Posted January 16, 2010 Hello, I do have a problem and I try to form this as clear as I can. I am dutch:-) I have a dynamic site php where "memebrs"can be found. on the resultpage it's possible to click on a certain member.(detailpage.php?id=...) On that detailpage I also want member to have their own favorite background music, with a switch tot turn it on/off. In the database(phpadmin) I type the pad top that musicfile on the server... But...I don't know how to present te music on the detailed page... Can you please help me with the code or the way I have to do this...??? If you need more information please contact me. Maybe I think the wrong way. Thanks very much in advance (by the way you make lovely websites). e-mail: spderks@zonnet.nl bye bye, Pieter-Jan Derks Quote Link to comment Share on other sites More sharing options...
falkencreative Posted January 17, 2010 Report Share Posted January 17, 2010 Seems like you'll need to use an audio player of some sort to play the file: http://www.labnol.org/internet/design/html-embed-mp3-songs-podcasts-music-in-blogs-websites/2232/ http://www.longtailvideo.com/players/jw-flv-player/ http://flowplayer.org/ You'll just need to use PHP/MySQL to query the database and select the right file to play in the audio player. Quote Link to comment Share on other sites More sharing options...
pieter-jan Posted January 17, 2010 Author Report Share Posted January 17, 2010 Ok, thanks so far and I hop that I can easily query th file in the DB. Do you have suggestions for that? Where do I have to place the query, I think that is the big Questions for me right now. Ok, I will download the player and I am going to try. Bye bye and thanks, Pieter Quote Link to comment Share on other sites More sharing options...
lm Posted January 17, 2010 Report Share Posted January 17, 2010 embed one of the players (from the list Ben posted) on the members page and use XML list (for example) to load tracks from your server to the player. Quote Link to comment Share on other sites More sharing options...
pieter-jan Posted January 17, 2010 Author Report Share Posted January 17, 2010 Ok Thanks Ben, I am a newbie to php/mysql. but can I want to query the database and select the right file to play in the audio player. where do I have to place that query string? Somewhere in between the embeds, in the player? Create a table? Quote Link to comment Share on other sites More sharing options...
pieter-jan Posted January 17, 2010 Author Report Share Posted January 17, 2010 Stop searching: Eureka, it was easier than I thought it would be.... the <?php....?> just place I am really happy!! Thanks guys for thinking..if you were:-)) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.