Problème header sans exit
Posté : 27 janv. 2016, 15:30
Bonjour à tous,
Pourriez vous m'aider? voici mon problème ici je regarde si un projet existe déjà si j'enlève le exit celui-ci me redirige vers une autre page avec un header plus bas je ne comprends pas comment cela est possible auriez-vous une explication?
Pourriez vous m'aider? voici mon problème
Code : Tout sélectionner
$requete = "SELECT NUM_PROJET FROM POP_PROJET WHERE NUM_PROJET ='".$num_projet."'";
$statement = oci_parse($conn, $requete);
oci_execute($statement,OCI_COMMIT_ON_SUCCESS);
$numrows = oci_fetch_all($statement, $res);
if($numrows > 0){
$_SESSION['MESSAGE'] = T_("Le numéro de projet ne doit pas exister!");
header('Location: ajt_projet.php');
exit ;
}