Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try
- {
- // Mise à jour dans la bd
- $query = "INSERT INTO clients(numeroClient, civil, nom, prenom, adresse, codePostal, ville, pays) VALUES(:pId, :pcivil, :pnom, :pprenom, :padresse,:pcodepostal, :pville, :ppays)";
- $stmt = $bdd->prepare ($query);
- $stmt->bindParam(':pId', $newId);
- $stmt->bindParam(':pcivil', $civil);
- $stmt->bindParam(':pnom', $nom);
- $stmt->bindParam(':pprenom', $prenom);
- $stmt->bindParam(':padresse', $adresse);
- $stmt->bindParam(':pcodePostal', $codePostal);
- $stmt->bindParam(':pville', $ville);
- $stmt->bindParam(':ppays', $pays);
- $nbInsert = $stmt->execute();
- echo "yo";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement