GIF89a php
Current File : /home/viralhoga/public_html/getVideo.php
<?php 
if(isset($_POST['proid']) && !empty($_POST['proid'])){
include('adminpanel/config.php');
$getVideoLink = mysqli_fetch_array(mysqli_query($con,"select `videoUrl` from `product` where id='$_POST[proid]'"))['videoUrl'];
if(!empty($getVideoLink)){
 echo '<iframe width="560" height="315" src="'.$getVideoLink.'" title="" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>';	
 }else echo 0; 
}else header('location:/');
?>