PHP/HTML echo a variable in a div
<p>I have a div which works fine</p>

<pre><code>  &lt;div id="fb-root"&gt;&lt;/div&gt;
   &lt;fb:like href="&lt;?php echo $link; ?&gt;" send="true" width="450" show_faces="true" font=""&gt; 
   &lt;/fb:like&gt;
</code></pre>

<p>If I try to use an echo, I don't get the value of $link when I do this.</p>

<pre><code>echo '&lt;div id="fb-root"&gt;&lt;/div&gt;
&lt;fb:like href="&lt;?php echo $link; ?&gt;" send="true" width="450" show_faces="true" font=""&gt;
&lt;/fb:like&gt;';
</code></pre>

<p>likewise this one too. i cannot get the $link.</p>

<pre><code>echo '&lt;iframe src="http://www.facebook.com/plugins/like.php?app_id=208015255907895&amp;amp;href="',$link,'"&amp;amp;send=true&amp;amp;layout=button_count&amp;amp;width=50&amp;amp;show_faces=true&amp;amp;action=like&amp;amp;colorscheme=light&amp;amp;font=trebuchet+ms&amp;amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:21px;" allowTransparency="true"&gt;&lt;/iframe&gt; '
</code></pre>

<p>Any help?</p>
