Edit file File name : view-destinations.php Content :<?php include './class/include.php'; $id = ''; $id = $_GET['type']; $DESTINATIONS = new Attraction($id); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="description" content=""> <meta name="author" content=""> <title>Taxi Galle |</title> <!-- Bootstrap --> <link href="common/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"> <!-- Owl Carousel --> <link href="common/owl-carousel/css/owl.carousel.min.css" rel="stylesheet" type="text/css"> <!-- Fancybox --> <link rel="stylesheet" href="common/fancybox/jquery.fancybox.min.css" type="text/css" /> <!-- Theme Style --> <link href="css/style.css" rel="stylesheet" type="text/css"> <!-- Custom Style --> <link href="css/custom.css" rel="stylesheet" type="text/css"> <style> .banner-home { background: url(./images/banner/back_dark.jpg) top center no-repeat !important; background-size: cover; } .header-bottom { background: rgba(0, 0, 0, 0.5); } header.header-small { background: #000; } .search-section .tab-sec .nav-tabs .nav-link { padding: 19px 24px 10px 25px; } </style> </head> <body> <!--Header area start here--> <?php include('./header.php'); ?> <!-- Pagewrap Start Here --> <div class="content"> <section class="banner-gallery inner-banner"> <div class="banner-box"> <h1><?php echo $DESTINATIONS->title ?></h1> </div> </section> <section class="latest-news-details sec-pd inner-pd" style="padding-top: 65px;"> <div class="container"> <div class="row"> <!-- Start left Column --> <div class="news-left col-md-8"> <div id="vehicle-slider1" class="owl-carousel owl-theme"> <?php $DESTINATIONS_PHOTO = new AttractionPhoto(null); foreach ($DESTINATIONS_PHOTO->getAttractionPhotosById($DESTINATIONS->id) as $destinations_photo) { ?> <div class="news"> <div class="" style="border: 1px solid #bcbcbc;margin-bottom: 30px;"> <div class=""> <img src="upload/attraction/gallery/<?php echo $destinations_photo['image_name'] ?>" alt="Destinations left"> </div> </div> </div> <?php } ?> </div> <div class="vehicle"> <?php echo $DESTINATIONS->description ?> </div> </div> <!-- End left Column --> <!-- Start Right Column --> <div class="col-md-4"> <div class="news-right"> <div class="popular-news"> <ul> <?php $DESTINATIONS = new Attraction(NULL); foreach ($DESTINATIONS->all() as $key => $destinations) { if ($key < 7) { ?> <li> <a href="view-destinations.php?type=<?php echo $destinations['id'] ?>"> <div class="news"> <div class="img-ar"> <img src="upload/attraction/<?php echo $destinations['image_name'] ?>" alt="News Right" width="100px" height="100px"> </div> <div class="text-ar"> <h4><?php echo $destinations['title'] ?></h4> <p><?php echo substr ($destinations['short_description'], 0, 50) . '..'; ?> </p> </div> </div> </a> </li> <?php } } ?> </ul> </div> </div> </div> <!-- End Right Column --> </div> </div> </section> <?php include('./footer.php'); ?> </div> <!-- Pagewrap End Here--> <!-- jQuery (necessary for JavaScript plugins) --> <script src="js/jquery.min.js"></script> <!-- Bootsrap JS --> <script src="common/bootstrap/js/bootstrap.min.js"></script> <!-- Owl Crousel --> <script src="common/owl-carousel/js/owl.carousel.js"></script> <!-- Fancybox --> <script src="common/fancybox/jquery.fancybox.min.js"></script> <!-- Font Awesome JS --> <script src="js/all.min.js"></script> <!-- Custom JS --> <script src="js/custom.js"></script> </body> </html>Save