Again -- Alesis, you?re quite welcome
To answer the question as to why 5 was getting matched (as well as 3,4,6,7,8,9,0) is that the square brackets create a character set. For example [24] creates a set of two characters that will match both 2 and 4 (did I mention my regular expressions are rusty). So the proper syntax should have been
PHP Code:
$privateforum = '"^(3|25|26|27|28|29|30|6)$'";
However using regular expressions (as I have come to find out) is much slower than a list of comma separated values on a row that has an index such as this.
PHP Code:
$privateforum = "'3', '24', '25', '26', '27', '28', '29', '30'";