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 28
|
<?php
header('Content-type:text/html; charset=UTF-8'); // encodage UTF-8
error_reporting(E_ALL);
$bddreq = new PDO('mysql:host=localhost;dbname=EMPL;charset=utf8', 'root', '');
if(isset($_POST['submit']))
{
if(!empty($_POST['valid']))
{
$bddmembre2 = $bddreq->prepare("UPDATE validhs SET nom=:nom, datehs=:datehs, heure=:heure, com=:com, demande=:demande, valid=:valid WHERE id=:id");
$bddmembre2->execute(array(
':id' => $_POST['id'],
':nom' => $_POST['nom'],
':datehs' => $_POST['datehs'],
':heure' => $_POST['heure'],
':com' => $_POST['com'],
':demande' => $_POST['demande'],
':valid' => $_POST['valid']
));
}
}
?>
<a href="saisirh.php">RETOUR</a> |
Partager