[Solved] syntax error, unexpected ”” (T_CONSTANT_ENCAPSED_STRING)


try this

<?php if(isset($error)) {echo ("<div id='errors'>$error</div>");}?>

solved syntax error, unexpected ”

” (T_CONSTANT_ENCAPSED_STRING)