PHP in PHP error - Parse error syntax error, unexpected '<'
<p>I am having problems with the code below where I'm getting:</p>

<p>Parse error syntax error, unexpected '&lt;' </p>

<p>What I'm I doing wrong?</p>

<p>Here's the code:</p>

<pre><code>&lt;?php if($myvar[123]){ ?&gt;

&lt;div&gt;

&lt;?php if ($myvar == 'value1'){ //ERROR IN THIS LINE
echo '&lt;img src="image1.png" /&gt;';
} else {
echo '&lt;img src="image2.png" /&gt;';    
} 
?&gt;
&lt;input type="text"&gt;
&lt;/label&gt;
&lt;/div&gt;


&lt;?php } ?&gt;
</code></pre>
