public static function deleteCommandes(Commandes $commandes)
 {
     $pdo = Database::getInstance()->prepare('DELETE FROM commandes WHERE idCommande=:idCommande ');
     $pdo->bindValue(':idCommande', $commandes->getIdCommande());
     $pdo->execute();
 }
示例#2
0
                } else {
                    ?>
                    <?php 
                    include 'Interdiction_Acces.php';
                    ?>
                <?php 
                }
                ?>
            <?php 
            } else {
                ?>
                <?php 
                include 'Interdiction_Acces.php';
                ?>
            <?php 
            }
            ?>
        <?php 
        } else {
            ?>
            <?php 
            include 'Interdiction_Acces.php';
            ?>
        <?php 
        }
        ?>
        <?php 
    }
}
$class = new Commandes();
$class->run();