prepare(' SELECT c.*, cat.name AS category_name FROM tv_channels c LEFT JOIN tv_categories cat ON cat.id = c.category_id WHERE c.slug = ? AND c.is_active = 1 LIMIT 1 '); $st->execute([$slugParam]); $channel = $st->fetch(PDO::FETCH_ASSOC); } elseif ($idParam > 0) { $st = $pdo->prepare(' SELECT c.*, cat.name AS category_name FROM tv_channels c LEFT JOIN tv_categories cat ON cat.id = c.category_id WHERE c.id = ? AND c.is_active = 1 LIMIT 1 '); $st->execute([$idParam]); $channel = $st->fetch(PDO::FETCH_ASSOC); } if (!$channel) { $siteName = get_setting('site_name', 'StreamHub'); $pageTitle = 'Channel not found'; require __DIR__ . '/templates/header.php'; ?>
Channel not found or is currently inactive.

Back to browse

0) { $relSt = $pdo->prepare(' SELECT c.id, c.name, c.slug, c.logo, c.description, c.country_code, c.is_featured, cat.name AS category_name FROM tv_channels c LEFT JOIN tv_categories cat ON cat.id = c.category_id WHERE c.is_active = 1 AND c.category_id = ? AND c.id <> ? ORDER BY c.is_featured DESC, c.created_at DESC LIMIT 12 '); $relSt->execute([$catId, $channelId]); $relatedChannels = $relSt->fetchAll(PDO::FETCH_ASSOC) ?: []; } if (!$relatedChannels) { $relSt = $pdo->prepare(' SELECT c.id, c.name, c.slug, c.logo, c.description, c.country_code, c.is_featured, cat.name AS category_name FROM tv_channels c LEFT JOIN tv_categories cat ON cat.id = c.category_id WHERE c.is_active = 1 AND c.id <> ? ORDER BY c.created_at DESC LIMIT 12 '); $relSt->execute([$channelId]); $relatedChannels = $relSt->fetchAll(PDO::FETCH_ASSOC) ?: []; } /* ------------------------------------------------- 3) Sidebar: some more channels ------------------------------------------------- */ $sidebarSt = $pdo->query(' SELECT c.id, c.name, c.slug, c.logo, c.country_code, c.is_featured FROM tv_channels c WHERE c.is_active = 1 ORDER BY c.is_featured DESC, c.created_at DESC LIMIT 10 '); $sidebarChannels = $sidebarSt->fetchAll(PDO::FETCH_ASSOC) ?: []; require __DIR__ . '/templates/header.php'; ?>

Featured

Live

If the stream doesn’t start, try reloading or using a modern browser with HLS support.

Channel details

Name

Category

Country

Status

Active Inactive

Description

More channels

No other channels found.

Related channels

More channels you might like.

Browse all

No related channels found.