0

Hello guys!
i got a small problem here..

<script type="text/javascript" src="jwplayer.js"></script> 
	<script type="text/javascript"> 
		jwplayer("mediaplayer").setup({
			flashplayer: "player.swf",
			file: "data/vid/CHANGETHISNAME.flv",
			image: "preview.jpg"
		});
	</script>

I need to change the file name in this code by a PHP variable gotten from

$row['movietitle'];

.

I have no clue, please give me something..

Cheers,
Sorcher

2
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by Sorcher
0
<script type="text/javascript" src="jwplayer.js"></script> 
	<script type="text/javascript"> 
		jwplayer("mediaplayer").setup({
			flashplayer: "player.swf",
			file: "data/vid/<?php echo $row['movietitle'];?>",
			image: "preview.jpg"
		});
	</script>
0

Oh it works like that? thanks allot, my JS knowledge is an "F" for sure.

Thanks again alan!

0

Tell you a secret, I'm a js noob too :)
I use it to fulfil a purpose, otherwise I stay the hell away from it. It's almost as scary as Perl!

0

haha i agree on that, all those child and parent functions, makes me dizzy.
But i do find Perl Interesting, and i use it to copy files from place to place on my host because its really really fast. also compress.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.