Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. try
  2. {
  3.  
  4. // Mise à jour dans la bd
  5. $query = "INSERT INTO clients(numeroClient, civil, nom, prenom, adresse, codePostal, ville, pays) VALUES(:pId, :pcivil, :pnom, :pprenom, :padresse,:pcodepostal, :pville, :ppays)";
  6. $stmt = $bdd->prepare ($query);
  7. $stmt->bindParam(':pId', $newId);
  8. $stmt->bindParam(':pcivil', $civil);
  9. $stmt->bindParam(':pnom', $nom);
  10. $stmt->bindParam(':pprenom', $prenom);
  11. $stmt->bindParam(':padresse', $adresse);
  12. $stmt->bindParam(':pcodePostal', $codePostal);
  13. $stmt->bindParam(':pville', $ville);
  14. $stmt->bindParam(':ppays', $pays);
  15. $nbInsert = $stmt->execute();
  16. echo "yo";
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement