WIP: bolsa V 1.0
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
ini_set('display_errors', 1);
|
||||
error_reporting(E_ALL);
|
||||
|
||||
require_once __DIR__ . '/db.php';
|
||||
$db = (new App\Database\Database())->getConnection();
|
||||
|
||||
// Insertion dans la table ordreJFG_pied
|
||||
$sql = "INSERT INTO ordreJFG_pied (Id_entete, Date_op, Quantite, Prix_brut, Frais_brocker, Frais_etat, Frais_autre, Ordre, Type, Etat)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
|
||||
|
||||
$stmt = $db->prepare($sql);
|
||||
|
||||
$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]);
|
||||
Reference in New Issue
Block a user