prepare("DELETE FROM videos WHERE id = ?"); $stmt->execute([$video_id]); } catch (PDOException $e) { // You might want to log this error instead of dying die("Database error: " . $e->getMessage()); } } header("Location: admin.php"); exit;