add bancomment change
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user