prepare("SELECT id FROM users WHERE id = ?"); $stmt->execute([$user_id]); if (!$stmt->fetch()) { session_destroy(); header("Location: login.php"); exit(); } $stmt = $pdo->prepare("SELECT * FROM videos WHERE user_id = ? ORDER BY id DESC"); $stmt->execute([$user_id]); $videos = $stmt->fetchAll(); ?> Dashboard

Videos

| Admin Panel | Logout

Drag & drop video here or click to upload