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
+20
View File
@@ -0,0 +1,20 @@
<?php
require_once __DIR__ . '/db.php';
header('Content-Type: application/json');
$db = (new App\Database\Database())->getConnection();
// Récupération des données POST
$id = $_POST['id'];
$nom = $_POST['nom'];
$ticker = $_POST['ticker'];
try {
// Mise à jour de la table ordreJFG
$stmt = $db->prepare("UPDATE ordreJFG SET Nom = ?, ticker = ? WHERE ID = ?");
$stmt->execute([$nom, $ticker, $id]);
echo json_encode(['success' => true]);
} catch (Exception $e) {
echo json_encode(['success' => false, 'message' => $e->getMessage()]);
}