1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| try{
...
));
}
catch(Exception $e){
die('Erreur requête Ajout : '.$e->getMessage());
}
// POUR INDIQUER QUE L'AJOUT DE COMPTE EST OK
$_SESSION['AjoutCompte']='OK';
//redirection vers ancienne page
header('Location: admin2.php');
?>try{
...
));
}
catch(Exception $e){
die('Erreur requête Ajout : '.$e->getMessage());
}
// POUR INDIQUER QUE L'AJOUT DE COMPTE EST OK
$_SESSION['AjoutCompte']='OK';
//redirection vers ancienne page
header('Location: admin2.php');
?> |