add bancomment change

This commit is contained in:
Hendrik
2017-01-31 16:15:48 +01:00
parent eb12b6ba7d
commit b16dc1d4b7
5 changed files with 58 additions and 1 deletions

View File

@@ -424,4 +424,19 @@ function getRoleByID($userID) {
$stmt->bindParam(':userID', $userID);
$stmt->execute();
return $stmt;
}
function editBanCommentByID($userID, $comment) {
$stmt = prepareQuery("
UPDATE
`user`
SET
`bancomment` = :comment
WHERE
`userID` = :userID
");
$stmt->bindParam(':userID', $userID, PDO::PARAM_INT);
$stmt->bindParam(':comment', $comment);
$stmt->execute();
}