improve adminpanel w/ ajax, enum fixes, misc fixes

This commit is contained in:
Hendrik
2017-01-27 16:14:54 +01:00
parent c2d8521cdd
commit b12eaced4a
10 changed files with 302 additions and 185 deletions

View File

@@ -143,15 +143,18 @@ function countSomeGroupsByStatus($keyword, $status) {
}
function changeGroupStatusByID($id, $status) {
$q = $GLOBALS["db"]->query("
$q = $GLOBALS["db"]->prepare("
UPDATE
`group_page`
SET
`status` = $status
`status` = :status
WHERE
`groupID` = $id
`groupID` = :id
");
$q->bindParam(':status', $status);
$q->bindParam(':id', $id);
$q->execute();
return $q;
}