📁 File Manager
Editing:
/home/wedigitalindia/www/kirmson.com/service-detail.php
<?php include('include/head.php'); ?> <?php $slug = $_GET['slug']; $top = mysqli_query($conn, "SELECT * FROM tbl_service where slug='$slug'"); $num34=mysqli_num_rows($top); while ($roh = mysqli_fetch_array($top)) { $tcat_id = $roh['id']; } if($num34 == 0) { ?> <script>window.location.href = "http://localhost/wdi_php/kirmson/404.php"; </script> <?php } ?> <body> <?php include('include/header.php'); ?> <?php $slug = $_GET['slug']; $ser = mysqli_query($conn, "SELECT * FROM tbl_service where slug='$slug'"); while($row = mysqli_fetch_array($ser)) { $name = $row['title']; $content = $row['content']; $photo = $row['photo']; $content_add = $row['content_add']; } ?> <!-- ==== service-detail banner start ==== --> <section class="service-banner"> <div class="service-banner-text"> <h1><?php echo $name; ?></h1> <!--<p>Electrical Power Solutions</p>--> </div> </section> <!-- ==== service-detail banner end ==== --> <!-- ==== service detail start ==== --> <section class="service-detail"> <div class="container"> <div class="row"> <div class="col-md-6"> <h2><?php echo $name; ?></h2> <p><?php echo $content; ?></p> </div> <div class="col-md-6"> <img src="<?php path(); ?>/admin/assets/images/service/<?php echo $photo; ?>" alt=""> </div> <div class="col-md-12"> <?php echo $content_add; ?> </div> </div> </div> </section> <!-- ==== service detail end ==== --> <?php include('include/footer.php'); ?> </body> </html>
Save
Cancel