Merhabalar Kolay gelsin resime tıkladımı ekrana büyük resim hali gelicek şekilde bu kodu düzenleyebilirmisiniz aşşağıda bıraktığım resim gibi olacak

 149576-6649af6ba7d03.png

<?php

if(!empty($urun['video'])){
echo '
<div class="swiper-slide">
<figure class="product-image">
<video style="height: 100%;width: 100%;" muted="false" onloadeddata="this.play();" autoplay="" playsinline="" webkit-playsinline="" loop="">
<source src="upload/'.$urun['video'].'" type="video/mp4" />
Your browser does not support the video tag.
</video>
</figure>
</div>';

}

$query = $db->query("SELECT * FROM urun_img WHERE urun_id = '{$urun['id']}' ", PDO::FETCH_ASSOC);
if($query->rowCount()){

if(!empty($urun['video'])){
$alt_img.='<div class="product-thumb swiper-slide"><video style="height: 100%;width: 100%;" muted="" playsinline="" webkit-playsinline="">
<source src="upload/'.$urun['video'].'" type="video/mp4" />
Your browser does not support the video tag.
</video> <i class="fa fa-play videoThumbIcon" aria-hidden="true"></i>
</div>';}

foreach($query as $row){

echo '<div class="swiper-slide">
<figure class="product-image">
<img src="upload/'.$row['img'].'"
data-zoom-image="upload/'.$row['img'].'"
alt="'.$urun['baslik'].'" width="800" height="900">
</figure>
</div>';

$alt_img.='<div class="product-thumb swiper-slide">
<img src="upload/'.$row['img'].'"
alt="'.$urun['baslik'].'" width="800" height="900">
</div>';

}
}
?>