le btn creer un ordre fctionne

This commit is contained in:
2026-07-05 14:19:13 +00:00
parent 26c5f06f98
commit 9865c17ac8
5 changed files with 134 additions and 34 deletions
+7
View File
@@ -0,0 +1,7 @@
<?php
require_once __DIR__ . '/db.php';
$db = (new App\Database\Database())->getConnection();
$stmt = $db->prepare("INSERT INTO ordreGF (isin, Nom, ticker, code_yahoo) VALUES (?, ?, ?, ?)");
$success = $stmt->execute([$_POST['isin'], $_POST['Nom'], $_POST['ticker'], $_POST['code_yahoo']]);
echo json_encode(['success' => $success]);