# Modify JS with php with data from mysql

**URL:** <https://forum.kirupa.com/t/modify-js-with-php-with-data-from-mysql/278755>\
**Category:** web dev\
**Created:** [January 5, 2009, 11:03am UTC](https://forum.kirupa.com/t/modify-js-with-php-with-data-from-mysql/278755 "2009-01-05T11:03:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goestoe](https://avatars.discourse-cdn.com/v4/letter/g/da6949/32.png) [@Goestoe](https://forum.kirupa.com/u/Goestoe)\
**Post date:** [January 5, 2009, 11:03am UTC](https://forum.kirupa.com/t/modify-js-with-php-with-data-from-mysql/278755/1 "2009-01-05T11:03:48Z")

</div>

I have this :

```auto
<script type="text/javascript" src="swfobject.js"></script>
		
<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>

```

Can anyone help how to modify the code with the result that “soundPath” is take from mysql database.

Thanks a lot before
