23 lines
610 B
PHP
23 lines
610 B
PHP
<?php
|
|
require_once __DIR__ . '/db.php';
|
|
$db = (new App\Database\Database())->getConnection();
|
|
|
|
$stmt = $db->prepare("INSERT INTO ordreGF_pied
|
|
(Id_entete, Date_op, Quantite, Prix_brut, Frais_brocker, Frais_etat, Frais_autre, Ordre, Type, Etat)
|
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
|
|
|
|
$success = $stmt->execute([
|
|
$_POST['Id_entete'],
|
|
$_POST['Date_op'],
|
|
$_POST['Quantite'],
|
|
$_POST['Prix_brut'],
|
|
$_POST['Frais_brocker'],
|
|
$_POST['Frais_etat'],
|
|
$_POST['Frais_autre'],
|
|
$_POST['Ordre'],
|
|
$_POST['Type'],
|
|
$_POST['Etat']
|
|
]);
|
|
|
|
echo json_encode(['success' => $success]);
|