add user and group batch change

This commit is contained in:
Hendrik
2017-01-19 12:57:10 +01:00
parent c4d78e54bc
commit 4c9223cba2
4 changed files with 94 additions and 20 deletions

View File

@@ -94,6 +94,22 @@ function changeGroupStatusByID($db, $id, $status) {
}
function changeMultipleGroupStatusByID($db, $ids, $status) {
$q = $db->prepare("
UPDATE
`group_page`
SET
`status` = :status
WHERE
FIND_IN_SET (`groupID`, :ids)
");
$ids = implode(',', $ids);
$q->bindParam(':ids', $ids);
$q->bindParam(':status', $status);
$q->execute();
return $q;
}
?>