Alguem poderia me ajudar a resolver o erro abaixo
Parse error: syntax error, unexpected T_IF, expecting T_FUNCTION in C:\Inetpub\wwwroot\Microled\alfandega\tecondi_gate\nota_frm_usuario\nota_frm_usuario_apl.php on line 1766
//----- linha 1766
if (“update” == $this->sc_evento) {
$_SESSION['scriptcase']['nota_frm_usuario']['contr_erro'] = 'on';
$this->NM_commit_db();
$this->NM_close_db();
echo "<script>";
echo "window.location = \"" . $this->nmgp_url_saida . "?script_case_init=" . $this->Ini->sc_page . "\"";
echo "</script>";
exit;
$_SESSION['scriptcase']['nota_frm_usuario']['contr_erro'] = 'off';
}