I have some javasript generating a flash video playing, and i would like to read the video file from SQL database. Then i have inserted directory for the video file inside the script, but it doesnt work.. How can i insert some PHP inside javascript ???
<script type="text/javascript">
var FO = { movie:"flvplayer.swf",width:"240",height:"140",majorversion:"7",build:"0",bgcolor:"#FFFFFF",
<? echo "flashvars:'file=\"/cinema/video/".$row[filname]."\" &enablejs=true&shuffle=false&showdigits=true&
showfsbutton=true&image=preview.jpg&logo=logo.png&showicons=false
&volume=100&backcolor=0x660066&frontcolor=0xffffff'" ?>};
UFO.create( FO, "player2");
</script>