1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| $connexion = new PDO('mysql:host=' .$bdd_serveur. '; dbname=skillsend;
charset=utf8', $bdd_user, $bdd_pass);
$connexion -> setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
$codesql = 'UPDATE Annonce SET (titre, description, id_user, date, categorie)
VALUE (:titre, :description, :id_user, :date, :categorie) WHERE id='.urldecode($_GET['id']);
$cree = $connexion->prepare($codesql);
$cree->bindParam(':titre',$Titre);
$cree->bindParam(':description',$Description);
$cree->bindParam(':id_user', $id_user);
$cree->bindParam(':date',$date);
$cree->bindParam(':categorie',$Categorie);
$cree->execute() |
Partager