public function saveConfig($key, $value) { $db = new MainDB(); $conn = $db->getConnection(); $stmt = $conn->prepare(self::$UPDATE); $stmt->bindValue(':value', $value); $stmt->bindValue(':key', $key); $stmt->execute(); $error = $stmt->errorInfo(); }