WIP: bolsa V 1.0

This commit is contained in:
2026-07-08 15:08:50 +00:00
parent 3a5e8a70e2
commit 39e5ae87ff
10 changed files with 1092 additions and 60 deletions
+12
View File
@@ -0,0 +1,12 @@
<?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
$stmt = $db->prepare("INSERT INTO ordreJFG (isin, Nom, ticker, code_yahoo) VALUES (?, ?, ?, ?)");
$success = $stmt->execute([$_POST['isin'], $_POST['Nom'], $_POST['ticker'], $_POST['code_yahoo']]);
echo json_encode(['success' => $success]);