$value) { $stmt = $db->prepare('UPDATE configuration SET value = ? WHERE name = ?'); $stmt->execute([$value, $name]); } header('Location: config.php'); exit; } $stmt = $db->query('SELECT * FROM configuration'); $config = $stmt->fetchAll(PDO::FETCH_KEY_PAIR); ?>