prepare(' UPDATE skills SET title = :title, icon = :icon, items = :items, position = :position WHERE id = :id '); $stmt->bindValue(':title', $title, PDO::PARAM_STR); $stmt->bindValue(':icon', $icon, PDO::PARAM_STR); $stmt->bindValue(':items', $items, PDO::PARAM_STR); $stmt->bindValue(':position', $position, PDO::PARAM_INT); $stmt->bindValue(':id', $id, PDO::PARAM_INT); $stmt->execute(); // Sinon on renvoie l'erreur } catch (PDOException $e) { die("Erreur lors de la modification de la compétence :" . $e->getMessage()); } // On renvoie l'utilisateur sur admin.php header('Location: ../pages/admin.php'); exit;