<?php include "_debut.inc.php"; include "_gestionBase.inc.php"; include "_controlesEtGestionErreurs.inc.php"; // CONNEXION AU SERVEUR MYSQL PUIS SÉLECTION DE LA BASE DE DONNÉES festival $connexion = connect(); if (!$connexion) { ajouterErreur("Echec de la connexion au serveur MySql"); afficherErreurs(); exit; } if (!selectBase($connexion)) { ajouterErreur("La base de données festival est inexistante ou non accessible"); afficherErreurs(); exit; } // SUPPRIMER UN ÉTABLISSEMENT $id = $_REQUEST['id']; $lgEtab = obtenirDetailEtablissement($connexion, $id); $nom = $lgEtab['nom']; // Cas 1ère étape (on vient de listeEtablissements.php) if ($_REQUEST['action'] == 'demanderSupprEtab') { echo "\r\n <br><center><h5>Souhaitez-vous vraiment supprimer l'établissement {$nom} ? \r\n <br><br>\r\n <a href='suppressionEtablissement.php?action=validerSupprEtab&id={$id}'>\r\n Oui</a> \r\n <a href='listeEtablissements.php?'>Non</a></h5></center>"; } else { supprimerEtablissement($connexion, $id); echo "\r\n <br><br><center><h5>L'établissement {$nom} a été supprimé</h5>\r\n <a href='listeEtablissements.php?'>Retour</a></center>"; }
<?php include "_gestionBase.inc.php"; include "_controlesEtGestionErreurs.inc.php"; // CONNEXION AU SERVEUR MYSQL PUIS SÉLECTION DE LA BASE DE DONNÉES Hynos $tabErreurs = array(); $connexion = connect(); if (!$connexion) { ajouterErreur($tabErreurs, "Echec de la connexion au serveur MySql"); afficherErreurs($tabErreurs); exit; } if (!selectBase($connexion)) { ajouterErreur($tabErreurs, "La base de données stsig est inexistante ou non accessible"); afficherErreurs($tabErreurs); exit; } ?> <form id="frmCriteresStage" action="accueil.php?page=resultatsRechercheStages" method="post"> <div id="corpsForm"> <p> <label for="dept" accesskey="d">Département : </label> <select name="dept" id="dept" size="1"> <option value="0" selected="selected">Indifférent</option> <?php $req = obtenirReqDepts(); $rsDept = mysql_query($req, $connexion); $lgDept = mysql_fetch_assoc($rsDept); while ($lgDept != false) { $numero = $lgDept['numero'];