prepare("INSERT INTO workflows (name, `trigger`) VALUES (?, ?)"); $stmt->execute([$name, $trigger]); header("Location: " . $_SERVER['PHP_SELF']); exit; } catch (PDOException $e) { error_log("Error adding workflow: " . $e->getMessage()); } } } // Fetch workflows from the database $stmt = $pdo->query("SELECT * FROM workflows ORDER BY created_at DESC"); $workflows = $stmt->fetchAll(); ?> Workflows

Workflows

Name Trigger Actions
Manage Actions