Added queries and functions for adding group members.

This commit is contained in:
K. Nobel
2017-02-01 12:19:59 +01:00
parent 6b13db9c4f
commit 58bb89f9b4
4 changed files with 114 additions and 0 deletions

View File

@@ -58,6 +58,23 @@ function selectGroupRole(int $groupID) {
return $stmt->fetch()["role"];
}
function selectGroupStatus(int $groupID) {
$stmt = prepareQuery("
SELECT
`status`
FROM
`group_page`
WHERE
`groupID` = :groupID
");
$stmt->bindParam(':groupID', $groupID, PDO::PARAM_INT);
if(!$stmt->execute()) {
return False;
}
return $stmt->fetch()["status"];
}
function selectGroupMembers(int $groupID) {
$stmt = prepareQuery("
SELECT