1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| <?php
try{
include 'db.inc.php';
$sth = $connexion->prepare("update from prestation set `client` = :client , `name` = :name , `tache` = :tache , `debut` = :debut, `fin` = :fin, `rapport` = :rapport, `selection` = :selection, `note` = :note WHERE id = :id");
$sth->execute(array(':client'=>$_POST['client'],':name'=>$_POST['name'], ':tache'=>$_POST['tache'], ':debut'=>$_POST['debut'], ':fin'=>$_POST['fin'], ':rapport'=>$_POST['rapport'], ':selection'=>$_POST['selection'], ':note'=>$_POST['note'], ':id'=$_POST['id']));
include ('prestation.php');
}
catch(PDOException $e)
{
echo "Échec : " . $e->getMessage();
}
?> |
Partager