Esempio n. 1
0
<?php

/**
 * Created by PhpStorm.
 * User: Florent
 * Date: 12/03/2015
 * Time: 08:48
 */
require_once '../bdd/pdo.php';
require_once '../manager/PanierManager.php';
require_once '../class/Panier.php';
session_start();
$monpanier = new Panier();
$monpaniermanager = new PanierManager($bdd);
$monpanier->setIdpanier($_POST['idpanier']);
$monpaniermanager->suppression_panier_ligne($monpanier);
if ($monpaniermanager->verification_suppression($monpanier) == true) {
    header('Location:../main/panier.php');
} else {
    echo "Erreur l'article n'est pas supprimé";
}