$res = mysqli_query($connection, "SELECT v.* FROM video_category INNER JOIN video_category vc ON vc.category_id = video_category.category_id INNER JOIN videos v ON v.id = vc.video_id WHERE video_category.video_id = " .((int)$_GET[id]). " ORDER BY vc.video_id DESC LIMIT 9") or die(mysql_error());
while ($row4 = mysqli_fetch_assoc($res)) {
echo $row4['title'];
}
$pagevideo = mysqli_query($connection, "SELECT * FROM `videos` WHERE `id` = " . (int)$_GET['id']);
$movie = mysqli_fetch_assoc($pagevideo);
if(empty($movie)){
echo "Переменная пуста";
exit();
}else{
echo "В переменной есть данные";
var_dump($movie);
exit();
}
<div id="vidos">
<video class="video__screen" controls crossorigin>
<source src='<?php echo $movie['place_of_location'].'.mp4'; ?>' type='video/mp4' />
</video>
<script src="plyr.js"></script>
<script>plyr.setup();</script>
<div class="set_video">
<div class="vidos_title">
<h1 class="vidos_title_h1"><?php echo $movie['title'];?></h1>
</div>
<div class="vidos_views_date">
<div class="views__"><p> <?php echo $movie['views']?></p></div>
<div class="date___"><p> <?php echo $movie['date']?></p></div>
</div>
</div>
</div>