2013-12-09, 05:03 PM
Hi there. In the plugin settings I have the ability to set display to groups (a plugin for the needs of my forum), these groups segregate comma (read the GID).
That is:
What am I doing wrong?
$display = " IN (" . $mybb->settings['group_display'] . ")";
Well, now downloading the database name of the group:$sql = $db->query("
SELECT g.gid, g.title
FROM ".TABLE_PREFIX."usergroups g
WHERE g.gid $display
");
Well, the result Downloads take a while loop.That is:
while($group = $db->fetch_array($sql))
Okay, retrieves the names of groups, but only the first one (the one entered in the settings (GID)) So, for example, 4 If I wanted this type 4,3,2 and so the result will be displayed with GID 4What am I doing wrong?