Observation 1:
elseif
implies that there is a
if
statement above and there is an
else
for the last condition.
Observation 2:
The parentheses are not properly paired. Pair them properly accordingly to the conditions your desire.
An example to help you figure it out:
<?php
class Staff
{
public $Floor;
public $Block;
}
$staff = new Staff;
$staff->Floor = "3";
$staff->Block = "A3";
if (1==2)
{
echo 'this will never happen';
}
elseif(($staff->Floor == "3") && (($staff->Block == "A2") || ($staff->Block == "A3")))
{
echo 'Find Me Here ';
}
else
{
echo 'None of the above ';
}
?>