title: correct syntax to echo variable inside iframe
body: <p>I know i am missing something simple. I just want to display this iframe if $video-code exists. Can anyone see what is wrong with this? working in wordpress. error is on the echo line. i've also tried adding .'$video-code'. into the url.</p>
  
  <p>it is displaying the iframe correctly, but the variable is displaying as text in the url. if i call the variable elsewhere in the page without the If statement, it displays correctly.  </p>
  
  <p>THANKS for any help!</p>
  
  <pre><code>&lt;?php
  $key = 'video-code';
  $themeta = get_post_meta($post-&gt;ID, $key, TRUE);
  if($themeta != '') {
  echo '&lt;iframe id="player" width="560" height="315" frameborder="2"     src="http://www.youtube.com/embed/$video-code" &gt;&lt;/iframe&gt;';
  }?&gt;
  </code></pre>