Hi I'm having a bit of trouble understanding how to call a list of additional users from Vbulletin.
Here's what I have:
As you can see I've called the users from group id 24 but I have no idea how to call the additional users from that group as well.
Thanks for any help.
Here's what I have:
PHP Code:
$answer .= '<select name="'.$formbit[id].'">';
$members = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "user
WHERE usergroupid = 24
ORDER BY username ASC");
while($row = $db->fetch_array($members)) {
$answer .= '<option value="'.$row[username].'"';
if ($row[username] == $thisanswer) {
$answer .= 'selected="selected"';
}
$answer .= '>'.$row[username].'</option>';
}
$answer .= '</select>';
Thanks for any help.
Comment