Sindbad~EG File Manager

Current Path : /home/u625735752/domains/snackoncrumbs.com/public_html/demo/1.1/
Upload File :
Current File : /home/u625735752/domains/snackoncrumbs.com/public_html/demo/1.1/service.php

<?php
// Include the database connection
include 'conn.php'; 
?>

<!DOCTYPE html>
<html lang="en-US" dir="ltr">

  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- SEO Meta Tags -->
    <title>SnackonCrumbs - Delicious Cakes & Snacks Delivered to Your Doorstep</title>
    <meta name="description" content="SnackonCrumbs offers fresh and delicious cakes, snacks, and desserts delivered right to your door. Enjoy mouth-watering treats with the best quality and service. Order now!">
    <meta name="keywords" content="cakes, snacks, desserts, online cake delivery, snack delivery, fresh cakes, sweet treats, home delivery, bakery">
    <meta name="author" content="SnackonCrumbs">
    
    <!-- Open Graph Meta Tags for Social Media Sharing -->
    <meta property="og:title" content="SnackonCrumbs - Delicious Cakes & Snacks Delivered to Your Doorstep">
    <meta property="og:description" content="Enjoy the convenience of fresh and delicious cakes, snacks, and desserts delivered right to your door. Order now and indulge in the best treats!">
    <meta property="og:image" content="https://www.snackoncrumbs.com/assets/img/logo.png"> <!-- Replace with your image URL -->
    <meta property="og:url" content="https://www.snackoncrumbs.com">
    <meta property="og:type" content="website">
    
    <!-- Twitter Meta Tags for Social Media Sharing -->
    <meta name="twitter:title" content="SnackonCrumbs - Delicious Cakes & Snacks Delivered to Your Doorstep">
    <meta name="twitter:description" content="Get fresh cakes, snacks, and delicious desserts delivered to your doorstep. Quality snacks with an easy online order experience.">
    <meta name="twitter:image" content="https://www.snackoncrumbs.com/assets/img/logo.png"> <!-- Replace with your image URL -->
    <meta name="twitter:card" content="summary_large_image">
    
    <!-- Favicon -->
    <link rel="icon" href="https://www.snackoncrumbs.com/assets/img/favicon.ico" type="image/x-icon">
    
    <!-- Canonical Link to avoid duplicate content -->
    <link rel="canonical" href="https://www.snackoncrumbs.com">
    
    <!-- Stylesheets -->
    <link href="assets/css/theme.css" rel="stylesheet" />
  </head>

  <body>

    <!-- Main Content -->
    <main class="main" id="top">

      <?php include 'nav.php'; ?>

      <?php
      // Get the service ID and slug from the URL
      $service_id = isset($_GET['id']) ? (int) $_GET['id'] : 0;
      $slug = isset($_GET['slug']) ? $_GET['slug'] : '';

      // Check if service_id is valid
      if ($service_id > 0) {
          // Query to get the service details based on the ID
          $sql = "SELECT * FROM services WHERE id = ?";
          $stmt = $conn->prepare($sql);
          $stmt->bind_param("i", $service_id);
          $stmt->execute();
          $service_result = $stmt->get_result();
          
          // Check if service exists
          if ($service_result->num_rows > 0) {
              $service = $service_result->fetch_assoc();
          } else {
              // Handle the case where the service is not found
              echo "Service not found.";
          }
          $stmt->close();
      } else {
          // Invalid ID, handle error
          echo "Invalid Service ID.";
      }
      ?>

      <!-- Service Details Section -->
      <section class="pt-5 mt-5">
        <div class="container">
          <div class="row">
            <div class="col-12">
              <div class="card card-span mb-3 shadow-lg">
                <div class="card-body py-0">
                  <div class="row justify-content-center">
                    <!-- Image on the left -->
                    <div class="col-md-5 col-xl-7 col-xxl-8 g-0 order-0 order-md-1">
                      <img class="img-fluid w-100 fit-cover h-100 rounded-top rounded-md-end rounded-md-top-0" 
                           src="<?php echo htmlspecialchars($service['image']); ?>" 
                           alt="<?php echo htmlspecialchars($service['heading']); ?>" />
                    </div>
                    
                    <!-- Content on the right -->
                    <div class="col-md-7 col-xl-5 col-xxl-4 p-4 p-lg-5">
                      <h1 class="card-title mt-xl-5 mb-4">
                        <?php echo htmlspecialchars($service['heading']); ?> 
                        <span class="text-primary"><?php echo htmlspecialchars($service['heading_span_text']); ?></span>
                      </h1>
                      <p class="fs-1"><?php echo nl2br(htmlspecialchars($service['para'])); ?></p>
                      <div class="d-grid bottom-0">
                        <a class="btn btn-lg btn-primary mt-xl-6" href="#!">PROCEED TO ORDER<i class="fas fa-chevron-right ms-2"></i></a>
                      </div>
                    </div>

                  </div>
                </div>
              </div>
            </div>
          </div>
        </div><!-- end of .container-->
      </section>
      <!-- ============================================-->

      <?php include 'footer.php'; ?>
    </main>
    <!-- End of Main Content -->

  </body>

</html>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists