I have this code: it works fine
Divide your condition in to two parts.
Your Code Look like this :
if(!isset($_GET['id'])){
$id = $_GET['id'];
if($id == 1000 || $id == 2000) {
// Action
}
}
Use in_array
and add all the values you want to check against into the array:
if(!isset($_GET['id']) || !in_array($_GET['id'], array('1000', '2000'))){
echo 'not 1k or 2 k';
} else {
echo 'is 1k or 2k';
}
Functional example: https://3v4l.org/Q2uao