Image Source to Include a PHP Input
<p>I am trying to create an image that changes dependent on the genre grabbed from an icecast server, I am pretty sure I have the base code correct I think I've just incorrectly inputted the PHP variable.</p>

<pre><code>&lt;?php
            $stats = $core-&gt;radioInfo( "http://http://sc.onlyhabbo.net:8124/status-json.xsl" );
            ?&gt;
&lt;img src=http://www.habbo.com/habbo-imaging/avatarimage?user=&lt;?php
                        echo $stats['genre'];
                    ?&gt;&amp;action=std&amp;direction=2&amp;head_direction=2&amp;gesture=sml&amp;size=m&amp;img_format=gif/&gt;
</code></pre>

<p>is the full code. Have I inputted the PHP variable incorrectly</p>