1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
$query=$bdd->prepare('UPDATE membres m INNER JOIN infos_membre i ON i.i_membre_id=m.membre_id INNER JOIN rs_membre r ON r.rs_membre_id=m.membre_id SET m.membre_mdp=:mdp, m.membre_mail=:mail, i.membre_nom=:nom, i.membre_prenom=:prenom, i.membre_naissance=:naissance, i.membre_siteweb=:siteweb, i.membre_localisation=:localisation, i.membre_signature=:signature, i.membre_biographie=:biographie, i.membre_profession=:profession, r.membre_facebook=:facebook, r.membre_twitter=:twitter, r.membre_tumblr=:tumblr, r.membre_flickr=:flickr, r.membre_fotolog=:fotolog, r.membre_pinterest=:pinterest, r.membre_googleplus=:googleplus WHERE m.membre_id=:id');
$query->bindValue(':mdp',$pass,PDO::PARAM_STR);
$query->bindValue(':mail',$email,PDO::PARAM_STR);
$query->bindValue(':nom',$nom,PDO::PARAM_STR);
$query->bindValue(':prenom',$prenom,PDO::PARAM_STR);
$query->bindValue(':naissance',$naissance,PDO::PARAM_INT);
$query->bindValue(':siteweb',$siteweb,PDO::PARAM_STR);
$query->bindValue(':localisation',$localisation,PDO::PARAM_STR);
$query->bindValue(':signature',$signature,PDO::PARAM_STR);
$query->bindValue(':biographie',$biographie,PDO::PARAM_STR);
$query->bindValue(':profession',$profession,PDO::PARAM_STR);
$query->bindValue(':facebook',$facebook,PDO::PARAM_STR);
$query->bindValue(':twitter',$twitter,PDO::PARAM_STR);
$query->bindValue(':tumblr',$tumblr,PDO::PARAM_STR);
$query->bindValue(':fotolog',$fotolog,PDO::PARAM_STR);
$query->bindValue(':googleplus',$googleplus,PDO::PARAM_STR);
$query->bindValue(':pinterest',$pinterest,PDO::PARAM_STR);
$query->bindValue(':flickr',$flickr,PDO::PARAM_STR);
$query->bindValue(':id',$id,PDO::PARAM_INT);
$query->execute();
$query->CloseCursor(); |
Partager