prepare( $query ); $queryRequest->bindParam( ':num_eta', $_SESSION['cfa_num'], PDO::PARAM_INT ); $queryRequest->bindParam( ':myIdCap', $myIdCap, PDO::PARAM_INT ); $queryRequest->execute(); $data=$queryRequest->fetchAll(); $count = $queryRequest->rowCount(); if($count!=1){ header('location:index-cfa.php'); exit(); } $nom_cap = decrypter($maCleDeCryptage,$data[0]['nom_cap']).' '.decrypter($maCleDeCryptage,$data[0]['prenom_cap']); if(!isset($_POST['myCreneau']) || $_POST['myCreneau']=='undefined' || !isset($_POST['myDay'])){ $_SESSION['msg']='Une erreur a été rencontrée pour affecter une sollicitation.'; header('location:index-cfa.php'); exit(); } //Ajout ou Modification if($_POST['myAction']=='affecterSol'){ $myCreneau = $_POST['myCreneau']; $myDay = $_POST['myDay']; }else{ $_SESSION['msg']='Une erreur a été rencontrée pour affecter une sollicitation.'; header('location:index-cfa.php'); exit(); } ?>