1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| $login=($_SESSION['login']);
$heure=date('Y-m-d H:i:s');
if(isset($_POST['resolu']) ) {
$sql2=$pdo->prepare("UPDATE messages SET DATE_RESOLUTION=now(), RESOLU='oui',LOGIN=:login where NUM=:NUM AND RESOLU <> 'oui'");
foreach($_POST['resolu'] as $NUM=> $resolu){
$sql2->execute(array(':login'=>$login,
':NUM'=>$NUM)) ;
}
$sql3=$pdo->query("select NUM,MAIL,SUJ,COM from messages where NUM = ??????????????");
$TAB=$sql3->fetch();
$NUM=$TAB['NUM'];
$suj= $TAB['SUJ'];
$com=$TAB['COM'];
$mail= $TAB['MAIL'];
echo 'Le n° '.$NUM.' a été résolu le '.$heure.' par '.$login.' concernant le sujet '.$suj.'dont la description est'.$com. "</br>"."\r\n\r\n";
} |
Partager