Quote:
Originally Posted by kh99
You could try this:
Code:
select:eval
global $vbulletin;
$result = $vbulletin->db->query_read_slave("SELECT username, userid, usergroupid FROM " . TABLE_PREFIX . "user WHERE usergroupid IN(5, 6, 7) ORDER BY usergroupid");
$options = array();
while ($row = $vbulletin->db->fetch_array($result))
{
$options[$row['userid']] = htmlspecialchars_uni($row['username']);
}
|
i'll give it a try
--------------- Added [DATE]1351781773[/DATE] at [TIME]1351781773[/TIME] ---------------
kh99
it works
all i have to do now is test this with what i need it for