Associate Columns - Template:
Client: | Schema: | Header Row: | Start Column:
XLS Column
Schema Fields
| Title | ID | Type |
|---|
getConnection(); $stmt = $pdo->prepare("SELECT name, header_row, start_column, target_table, sample_xlsx, idclient, clientname, idschema, schemaname, schemajson FROM excel_templates WHERE id = ?"); $stmt->execute([$id]); $template = $stmt->fetch(PDO::FETCH_ASSOC); if (!$template) { die("Template not found"); } // Opzionale: se clientname o schemaname non sono disponibili, potresti volerli recuperare dinamicamente $clientName = $template['clientname'] ?: ''; $schemaName = $template['schemaname'] ?: ''; $schemajson = $template['schemajson'] ?: ''; // Recupera il valore di schemajson $isSchemajsonEmpty = empty(trim($template['schemajson'])); ?>