1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
$requete = "INSERT INTO paiements
(id_saison, id_adherent, mois, id_order, id_echeance, carte, state)
VALUES (:id_saison, :id_adherent, :mois, :id_order, :id_echeance, :carte, :state)
ON DUPLICATE KEY UPDATE state =:state "; //id_order et id_echeance clef unique
$retours = $liaison->prepare($requete);
$retours->bindParam(':id_saison', $id_saison, PDO::PARAM_INT);
$retours->bindParam(':id_adherent', $id_adherent, PDO::PARAM_INT);
$retours->bindParam(':mois', $mois);
$retours->bindParam(':id_order', $id_order);
$retours->bindParam(':carte', $carte);
$retours->bindParam(':id_echeance', $id_echeance);
$retours->bindParam(':state', $state); |
Partager