I am new to php so please forgive me if this is a dumb question. I get a syntax error on the line with the div id that says "unexpected <" and another on the line below that saying "unexpected ="
<?php
if (JRequest::getVar('view') != 'featured') {
<div id="breadcrumbs">
<jdoc:include type="modules" name="breadcrumbs" style="xhtml" />
</div>
}
?>
These errors go away when my code looks like this:
<?php if (JRequest::getVar('view') != 'featured') {?>
<div id="breadcrumbs">
<jdoc:include type="modules" name="breadcrumbs" style="xhtml" />
</div>
<?php }?>
They way I have learned was you only close the php when you are done so it confuses me a bit. Just wondering if I'm just doing it wrong or this is a weird error in Dreamweaver CC 2017.
Thanks for your time guys!
-Allan