Please check my syntax

This line of PHP was working fine, then I think I screwed small up - and I’m not seeing it. The js window it’s supposed to open in shows, “?enablejsapi=1&playerapiid=ytplayer&controls=2&rel=0”

what is incorrect in the below?

[php]<?php echo "$number";?><?php echo "$url"."?enablejsapi=1&playerapiid=ytplayer&controls=2&rel=0";?>[/php]

I was looking at your site when you did that! wondered what happened?
One minute the page opened - with an 500 error - next minute i see random javascript…

That explains it :slight_smile:

Edit:
[php]<?php echo $number . '' . $url ?>?enablejsapi=1&playerapiid=ytplayer&controls=2&rel=0[/php]
There you go :wink:

Cheers,
Red :wink:

I cut that line and replace the old… still pops up with “?enable…” in the window. Sorry, I 100% don’t know what I’m doing :slight_smile:

can you post the full code for the link for me :wink:

Here’s the whole file, “video.php”

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Video Player</title>
<style type="text/css">
<!--
body {
background-color: #FFFFFF;
margin: 0 auto; }
-->
</style>

<?php echo $number . '' . $url ?>?enablejsapi=1&amp;playerapiid=ytplayer&amp;controls=2&amp;rel=0


</head>

<body>
<object width="100%" height="100%">


<param name="movie" value="http://www.youtube.com/watch?v=<?= $watch; ?>"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/?fs=1&amp;hl=en_US&amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="100%" height="100%"></embed></object>
</body>
</html>

Thank you! I sent you a message in the other thread to email me so I could mail some band shirts, etc. Please enjoy some free tunes for now though! Webpage (no /a/) …com/afnpromo.html

Awesome!

email sent.
would i be correct in assuming this problem was fixed via my answer in the other post?

Sponsor our Newsletter | Privacy Policy | Terms of Service