Could anyone tell me the correct syntax for an if statement with two conditions (using "AND" maybe?).
Here is the example code: if ($num1>5 && $num2<4) echo "$num1 + $num2"; Hope that helps.
Rich... the syntax:
if (condition1 AND condition2) { statements... } OR if (condition1 && condition2) { statements... }
Great, thanks. I was expecting to find something like that under "if" in the PHP manual but I think they forgot.