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

Member Avatar for diafol
<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>

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

Thanks again alan!

Member Avatar for diafol

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!

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.