<?php

require 'includes/movie.php';
$film = new Movie();
if (isset($_POST['oui'])) {
    $film->supprimmer_film(array($_POST['num']));
    header("Location: ./index.php");
} else {
    if (isset($_POST['non'])) {
        header("Location: ./index.php");
    }
}
$result = $film->recuperer_film($_GET['mov_id']);
$row = $result->fetch();
?>

<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
    <title>MyMovies</title>
</head>

<body>
    <?php 
include 'includes/barre_nav.php';