Quote:
Originally Posted by sailnet
thanks for the fast reply. I fail to see what I'm missing for instance:
PHP Code:
if ( (a = b) and (c = d) and (e = f) ) // condition 1
or
(g = h) // condition 2
{
do something; // get's executed if condition 1 is true or condition 2 is true
}
this is how I read the above code.
|
That's not correct syntax. An if statement has to be
Code:
if (expr)
statement
so all parts of the expression have to be inside the outer set of parentheses. What you have is
Code:
if (expr) or (expr)
statement