$tripId, 'titel' => $titel, 'inhalt' => trim($_POST['inhalt'] ?? ''), 'created_by' => $user['id']]); } header('Location: /Develop/PlanerGoogel/notizen.php?trip=' . $tripId); exit; } if ($canEdit && $_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['save'])) { dbExec('UPDATE notizen SET inhalt = ?, updated_at = ? WHERE id = ? AND trip_id = ?', [trim($_POST['inhalt'] ?? ''), time(), (int)$_POST['id'], $tripId]); header('Location: /Develop/PlanerGoogel/notizen.php?trip=' . $tripId . '#notiz-' . (int)$_POST['id']); exit; } if ($canEdit && $_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['delete'])) { dbExec('DELETE FROM notizen WHERE id = ? AND trip_id = ?', [(int)$_POST['delete'], $tripId]); header('Location: /Develop/PlanerGoogel/notizen.php?trip=' . $tripId); exit; } $notizen = dbAll('SELECT * FROM notizen WHERE trip_id = ? ORDER BY updated_at DESC', [$tripId]); $pageTitle = 'Notizen'; $activeTab = 'notizen'; include __DIR__ . '/includes/header.php'; ?>
📝

Noch keine Notizen.