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/updates.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
// Fetch the latest updates from the database
$sql = "SELECT * FROM offer_updates ORDER BY id DESC LIMIT 3"; // Limit to 3 updates
$result = $conn->query($sql);
?>

<section class="pb-5 mt-5 bg-light">
  <div class="container">
    <div class="row">
      <div class="col-12 text-center mb-4">
        <h2 class="text-primary">Latest Updates</h2>
        <p class="text-muted">Stay updated with our latest news, offers, and product releases!</p>
      </div>
    </div>
    <div class="row">
      <?php if ($result->num_rows > 0): ?>
        <?php while($row = $result->fetch_assoc()): ?>
          <!-- Update -->
          <div class="col-md-4 mb-4">
            <div class="card shadow-sm">
              <!-- Dynamically add the image from the database -->
              <img src="<?= htmlspecialchars($row['image']) ?>" class="card-img-top" alt="<?= htmlspecialchars($row['heading']) ?>">
              <div class="card-body">
                <!-- Dynamically add the heading -->
                <h5 class="card-title"><?= htmlspecialchars($row['heading']) ?></h5>
                <!-- Dynamically add the description -->
                <p class="card-text"><?= htmlspecialchars($row['para']) ?></p>
                <!-- Dynamically add the link -->
                <a href="<?= htmlspecialchars($row['link']) ?>" class="btn btn-primary" target="_blank">Read More</a>
              </div>
            </div>
          </div>
        <?php endwhile; ?>
      <?php else: ?>
        <p>No updates available at the moment.</p>
      <?php endif; ?>
    </div>
  </div>
</section>




	  <?php include 'footer.php'?>
	  





    </main>
    <!-- ===============================================-->
    <!--    End of Main Content-->
    <!-- ===============================================-->



  </body>

</html>

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