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
+9
View File
@@ -0,0 +1,9 @@
<?php
require_once __DIR__ . '/db.php';
$isin = $_GET['isin'] ?? '';
$db = (new App\Database\Database())->getConnection();
$stmt = $db->prepare("SELECT * FROM actions WHERE isin = ?");
$stmt->execute([$isin]);
$action = $stmt->fetch(PDO::FETCH_ASSOC);
echo json_encode($action ? ['success' => true, ...$action] : ['success' => false]);