When I use this if construction with parenthesis
if ($_POST['type']!='1' || ($_POST['type']=='1' && $_POST['prepayment']=='2'))
{
do this and that
}
I get a PHP error:
Fatal error : Call to undefined function () in .....
What's wrong?
Since the function name is given as "" (nothing), the only reasonable cause for this is a wrong whitespace character before (, e.g. an IDEOGRAPHIC SPACE U+3000, or something of that sort. PHP recognises that as not-a-space but some-Unicode-character, which is a valid function name. E.g. 漢字() would be a valid function call, so is () (that's a full-width space character).
Check your spaces and/or retype that line.
if (($_POST['type'] != '1') || ($_POST['type'] == '1' && $_POST['prepayment'] == '2')) {ifblock?path/file.phpon line 274. The line number matches exactly theifblock