<?php
if($row['top_pic'] == ""){
echo "<img src='images/img.png' class='imimg1'>";
} else {
echo "<img src='images/".$row['top_pic']."' class='imimg1'>";
}
?>
Needs to change this to if (this file an image) {show it} else {show video}