Jump to content

insert code into db, mix with java code


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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.