prepare("INSERT INTO company_holidays (start_date, end_date, description, created_by) VALUES (?, ?, ?, ?)"); $stmt->execute([$start, $end, $desc, $_SESSION['userid']]); header('Location: company_holidays.php'); exit(); } include 'header.php'; $stmt = $pdo->prepare("SELECT * FROM company_holidays ORDER BY start_date DESC"); $stmt->execute(); $holidays = $stmt->fetchAll(); ?>

Betriebsurlaub verwalten

Von Bis Beschreibung Erstellt von Aktion
prepare("SELECT vorname, nachname FROM users WHERE id = ?"); $s->execute([$h['created_by']]); $u = $s->fetch(); echo htmlspecialchars($u['vorname'] . ' ' . $u['nachname']); ?>