<style type="text/css">
@media (max-width: 479px) and (min-width: 320px){
#galleryimg{
width: 100% !important;
height: 100% !important;
}
}
</style>
<? include 'admin/settings.php';
$cate = $_POST["cate"];
if(empty($cate)){
$sql="SELECT * from gallery order by id desc";
}else{
$sql="SELECT * from gallery where category='$cate' order by id desc";
}
$exc = $mysqli->query($sql);
while($row =$exc->fetch_assoc()){
?>
<figure class="lift-thumbnail blog_post col-md-4">
<img id="galleryimg" style="width: 316px;" src="admin/img/<? echo $row["img"];?>" alt=""/>
</figure>
<? } ?> |