I am doing this equal statement and it’s not working.
if ( $1 === $one ) && ( $2 == $two ) {
require("one.php");
} elseIF($2 === $two) {
require("two.php");
}else{
require("three.php");
die("");
}
And this is the error message i get:
PHP Parse error: syntax error, unexpected T_BOOLEAN_AND
You need to do:
Or:
Remember to think of it as algebra in where you put brackets, the ‘IF@ statement needs to be evaluated as a whole with all criteria you wish to evaluate being wrapped within ( and ). Depending on how complex you wish to make your evaluations (build it formulaically) you can then wrap subsequent criteria in brackets, e.g.