caspert_ghost Posted June 20, 2008 Share Posted June 20, 2008 Hello, ~hope this is the right place~ I am designing a music section for my site to allow members to share their musical talents. I am able to set up the site manually and hard card everything but it is taking forever. What I would like to do is use a php script that uploads the mp3 file to the server. The output of the page will be a table with a row for each uploaded mp3. I am using a flash player (here is where I need the help) and want to have 10 rows per page (using pagination) the code for embedding the flash player: <div id="flashPlayer"> This text will be replaced by the flash music player. </div> <script type="text/javascript"> var so = new SWFObject("playerMini.swf", "mymovie", "75", "30", "7", "#FFFFFF"); so.addVariable("autoPlay", "no"); so.addVariable("soundPath", "song.mp3"); so.write("flashPlayer"); </script> in order for me to have multiple instances of this player I must change: <div id="flashPlayer"> and so.write("flashPlayer"); ie: when I hard code it I make the following: flashplayer0 for the first one flashplayer1 for the second and so on. Is there a way to have php add the change for me and use php to upload and create the tables via the database rather than hard coding each one (which requires the users to email me their files)? Thank you in advance 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.