I am using:
if (condition) {
..statements..
} else {
echo '<div class="errormsgbox">'. $json->text.'</div>';
}
But I am getting the following error (I got this error after I restarted my web server, it was working fine before that):
Parse error: syntax error, unexpected 'errormsgbox' (T_STRING) in index.php on line 49
I don't think that I have put wrong syntax, what could be wrong?