I am having problems with the code below where I'm getting:
Parse error syntax error, unexpected '<'
What I'm I doing wrong?
Here's the code:
<?php if($myvar[123]){ ?>
<div>
<?php if ($myvar == 'value1'){ //ERROR IN THIS LINE
echo '<img src="image1.png" />';
} else {
echo '<img src="image2.png" />';
}
?>
<input type="text">
</label>
</div>
<?php } ?>
</label>
closing tag is unmatched. – halfer Feb 15 at 10:51Parse error
is actually on that line? – mazzucci Feb 15 at 10:51