prepare("INSERT INTO Clients (idCarte, solde, decouvert) VALUES (?, ?, ?)"); $requete->bind_param("sss", $_POST["idCarte"], $solde, $decouvert); if (!$requete->execute()) { retour("erreur_bdd", ["message" => $requete->error]); } $requete->close(); $idTransaction = transaction(TRANSACTION_CREATION, $_POST["idCarte"], $solde); retour("ok", ["idTransaction" => $idTransaction]); ?>