Created
October 18, 2017 10:12
-
-
Save mjhmatt/921925740e5a3ec54efb2b681035d5e6 to your computer and use it in GitHub Desktop.
Group Invite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$groups = $mysqli->query(" | |
SELECT og_membership.etid, og.gid AS 'group' | |
FROM og_membership | |
LEFT JOIN og on og_membership.gid=og.etid | |
WHERE og_membership.entity_type = 'user'" | |
); | |
$i=0; | |
while($data = mysqli_fetch_array($groups)){ | |
groups_join_group($data['group'],$data['etid']); | |
$i++; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment