D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
shubmkcj
/
praneshaswalphotography.com
/
Filename :
category.php
back
Copy
<?php include "include/config.php"; include "include/header.php"; $category=''; if(isset($_GET['category'])){ $category=$_GET['category']; $category = str_replace("-", " ", $category); $category=ucwords($category); } ?> <section style="background-color: #f2f2f2;"> <div class="container container-padding" > <div id="mygallery" class="justified-gallery"> <?php $photo = mysqli_query($conn,"select * from photos where category='$category' order by id desc"); while($row = mysqli_fetch_assoc($photo)){ ?> <a href="<?php echo $base_url;?>category/<?php echo create_slug($row['category']);?>/<?php echo base64_encode($row['id']); ?>" class="figure"><img alt="<?php echo $row['heading'] ?>" src="<?php echo $img_url.$row['image'] ?>" title="<?php echo $row['heading'] ?>"></a> <?php } ?> </div> </div> </section> <?php include"include/footer.php"; ?>