If i got it right, in the second clause you want to get a range for the condition to be valid(88 to 90). In which case you could replace:
($p == 88 || $p == 89 || $p == 90 || $p == 91)
For:
(88<= $p && $p <=90)
And that sould do what you need, since you seem to need to do the same thing for whatever value of $p between 88 and 90.
Hope it helps.