Files

11 lines
390 B
PHP
Raw Permalink Normal View History

2026-07-05 14:19:13 +00:00
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
2026-07-05 14:19:13 +00:00
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]);