add changing single group status
This commit is contained in:
@@ -80,6 +80,20 @@ function search20GroupsFromNByStatus($db, $n, $keyword, $status) {
|
||||
return $q;
|
||||
}
|
||||
|
||||
function changeGroupStatusByID($db, $id, $status) {
|
||||
$q = $db->query("
|
||||
UPDATE
|
||||
`group_page`
|
||||
SET
|
||||
`status` = $status
|
||||
WHERE
|
||||
`groupID` = $id
|
||||
");
|
||||
|
||||
return $q;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
@@ -54,6 +54,7 @@ function search20UsersFromNByStatus($db, $n, $keyword, $status) {
|
||||
`username` LIKE :keyword AND
|
||||
FIND_IN_SET (`role`, :statuses)
|
||||
ORDER BY
|
||||
`role`,
|
||||
`username`
|
||||
LIMIT
|
||||
:n, 20
|
||||
|
||||
Reference in New Issue
Block a user