In writing select statements in mySQL, if I want to pull records where a column value equals one of a number of values, I can say something like this:
SELECT * F
See the in_array() function.
E.g.:
$list = array(1, 5, 7); if (in_array($category, $list)) { // do something }
Or, more compactly:
if (in_array($category, array(1, 5, 7))) { // do something }