1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| $civilite = $_POST['hcivilite'];
$nom = $_POST['hnom'];
$prenom = $_POST['hprenom'];
$entreprise = $_POST['hentreprise'];
$adresse = $_POST['hadresse'];
$adresse2 = $_POST['hadresse2'];
$cp = $_POST['hcp'];
$ville = $_POST['hville'];
$tel = $_POST['htel'];
$email = $_POST['hemail'];
$projet = $_POST['hprojet'];
$euro = $_POST['heuro'];
$centimes = $_POST['hcentimes'];
$projet = $_POST['hprojet'];
$montant = $euro.$centimes;
$ip = $_SERVER["REMOTE_ADDR"];
$date = date("d-m-Y");
$heure = date("H:i");
$id_paie = mt_rand();
$id_paiement = substr($id_paie, -6);
$serveur = mysql_connect("127.0.0.1","xx","xx");
$seletbd = mysql_select_db("base", $serveur);
$requete = "INSERT INTO `paiements` (`id`, `civilite`, `nom`, `prenom`, `entreprise`, `adresse`, `adresse2`, `cp`, `ville`, `tel`, `email`, `montant`, `projet`, `date`, `heure`, `code`, `error`, `merchant_id`, `merchant_country`, `amount`, `transaction_id`, `payment_means`, `transmission_date`, `payment_time`, `payment_date`, `response_code`, `payment_certificate`, `authorisation_id`, `currency_code`, `card_number`, `cvv_flag`, `cvv_response_code`, `bank_response_code`, `complementary_code`, `complementary_info`, `return_context`, `caddie`, `receipt_complement`, `merchant_language`, `language`, `customer_id`, `order_id`, `customer_email`, `customer_ip_address`, `capture_day`, `capture_mode`, `data`) VALUES (NULL, '$civilite', '$nom', '$prenom', '$entreprise', '$adresse', '$adresse2', '$cp', '$ville', '$tel', '$email', '$montant', '$projet', '$date', '$heure', NULL, NULL, NULL, NULL, '$montant', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '$id_paiement', NULL, '$ip', NULL, NULL, NULL);";
$result = mysql_query($requete);
mysql_close(); |
Partager