diff --git a/inclusions/barre_menu.php b/inclusions/barre_menu.php new file mode 100644 index 0000000..7f9fcfd --- /dev/null +++ b/inclusions/barre_menu.php @@ -0,0 +1,22 @@ +
Alias | +Domaines | +Listes noires | +Déconnexion | +
' . $row['courriel'] . ' | ' . $row['destination'] . ' |
"; +var_dump($voiture); +echo ""; + +$voiture->modifier_nb_portes(4); + +echo "
"; +var_dump($voiture); +echo ""; + +echo $voiture['nombre_portes']; + +?> +# https://www.vulgarisation-informatique.com/php-poo.php diff --git a/services/bdd/connexion.php b/services/bdd/connexion.php new file mode 100644 index 0000000..7b3ab0a --- /dev/null +++ b/services/bdd/connexion.php @@ -0,0 +1,16 @@ +setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); +} +catch (Exception $e){ + die ("Erreur de connexion à la base \"$base\" : ".$e->getMessage()) ; +} + +?> diff --git a/services/gestion/alias.php b/services/gestion/alias.php new file mode 100644 index 0000000..2a871c1 --- /dev/null +++ b/services/gestion/alias.php @@ -0,0 +1,56 @@ +