Remake approved view and add rename input in setting for room name
This commit is contained in:
@@ -37,6 +37,15 @@ class RoomManager{
|
||||
}
|
||||
}
|
||||
|
||||
public static function edit ($roomId, $values = []) {
|
||||
try {
|
||||
Db::edit ('rooms', $values, 'WHERE room_id = ?', array($roomId));
|
||||
} catch(PDOException $error) {
|
||||
echo $error->getMessage();
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
||||
public static function delete ($roomId) {
|
||||
Db::command ('DELETE FROM rooms WHERE room_id=?', array ($roomId));
|
||||
}
|
||||
|
Reference in New Issue
Block a user