Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/111103-insert-code-into-db-mix-with-java-code/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.