
01-04-2010, 02:11 AM
|
|
|
Join Date: Dec 2006
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Got this from another thread and this worked!!
Quote:
Originally Posted by MicroHellas
Yes, sure. You can do it on 2 ways:
1.- Changing the "where" argument from WHERE usergroupid=2, to WHERE usergroupid=2 OR usergroupid=3 OR usergrooupid=7 . In this example we assume that you want to include members who belong to usergroups 2,3,7
2.- By using an array. At the top of the file add:
Code:
$grouparray = "2,3,7";
$groupids = explode(',',$grouparray);
Then change the "where" argument from WHERE usergroupid=2, to WHERE usergroupid IN ($groupids)
Maria
|
|