    <?php
ob_start();

if (!session_start()) {
    session_start();
}
?>



<!--Global Header Starts -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>Monsoon Vibes - Book Market Place</title>
<!-- Google monseratt Font-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700&display=swap" rel="stylesheet">
<!-- Favicon-->
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
<!-- Bootstrap icons-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css" rel="stylesheet" />
<!-- Core theme CSS (includes Bootstrap)-->
<link href="css/layout.css" rel="stylesheet" />
<link href="css/styles.css" rel="stylesheet" />
</head>
<body>
<header>
  <div class="container">
    <div class="row">
      <div class="col-md-12">
        <nav class="navbar navbar-expand-lg navbar-light navigation"> <a class="navbar-brand" href="index.php"> <img src="assets/image/monsoon_vibes.png" alt="Monsoon Vibes" class="img-fluid"> </a>
          <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
          <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav m-auto main-nav ">
              <li class="nav-item"><a class="nav-link" aria-current="page" href="index.php">Home</a></li>
              <li class="nav-item"><a class="nav-link" href="publishing_policy.php">Publishing Policy</a></li>
              <li class="nav-item"><a class="nav-link active" href="authors.php">Reviews</a></li>
            </ul>
            <ul class="navbar-nav me-end">
             <?php
                                if ($_SESSION['CustId'] > 0) {
                                    ?>
							     <a class="nav-link login-btn" href="login/logout.php">Logout</a> 
							     <?php
                                } else {
                                    ?>
							     <a class="nav-link login-btn" href="login/login.php">Login</a> 
							      <li class="nav-item"> <a class="nav-link btn btn-outline-primary rounded-pill signup-btn" href="login/signup.php"> Sign Up</a> </li>
							     <?php
                                }
?>
             
            </ul>
          </div>
        </nav>
      </div>
    </div>
    <div class="row">
      <div class="search-bar d-flex justify-content-center m-auto">
        <div class="input-group mb-2">
          <input type="text" class="form-control search-field" placeholder="Book name / Author / Publisher / Subject">
          <button class="btn btn-primary search-btn" type="button"><span class="d-block d-sm-none"><i class="bi bi-search"></i></span><span class="d-none d-sm-block">Search</span></button>
        </div>
        <form class="d-flex" action="cart.php" method="post">
          <button class="btn btn border-0 cart-btn" type="submit"> <i class="bi-cart me-1 d-block"></i> <span class="cart-text">Cart</span> </button>
        </form>
      </div>
    </div>
  </div>
</header>
<!-- Global Header Ends --> 

<?php
try {
    $db = new PDO('mysql:host=localhost;dbname=gdhhsxmy_monsoonvibespublica;charset=utf8', 'gdhhsxmy_monsoonvibespublica', 'monsoonvibespublica');
} catch (Exception $e) {
    echo 'Error has Occured';
}

$stmt = $db->query('SELECT * FROM review ');



?>


<!-- Inside Body Starts-->
<section class="pt-5 authors">
  <div class="container">
      <h3>Reviews</h3>
  </div>
   <?php
   while ($row = $stmt->fetch()) {
       ?>
   <div class="row gx-4 gx-lg-5 align-items-center">
      <div class="col-md-4 my-3 d-flex justify-content-center"><img class="book-cover img-fluid " src="../pic/review/<?php echo $row['image'] ?>" alt="..."></div>
      <div class="col-md-8 my-3">
        <h3 class="fw-semibold auth-name text-uppercase"><?php	echo $row['title']?></h3>
        <p><?php	echo $row['description']?> </p>
      </div>
    </div>

    <hr>
    <?php
   }
?></php>
   
  </div>
  <!-- Buy Book Ends--> 
</section>

<!-- Global Footer Section-->
<footer class="footer-new">
    <div class="container">
      <div class="row">
        <div class="footer-new-col">
          
          <img src="assets/image/monsoon_vibes.png" class="img-fluid set-200" alt="logo">
       
          <p class="alt-color mt-2">MONSOONVIBES PUBLICA PRIVATE LIMITED, 33/6466-C, Shanthi Villa, Vappoli Thazham,
            Puliyankode Road,Marikunnu P.O, 673012 - Pin, Kozhikkode .</p>
        </div>
        <div class="footer-new-col res-new-ps-md" >
          <h4>Policies</h4>
          <ul>
            <li><a href="Privacy_Policy.php">Privacy policy</a></li>
              <li><a href="Refundpolicy.php">Refund policy</a></li>
              <li><a href="TermsAndConditions.php">Terms & conditions</a></li>
          </ul>
        </div>
        <div class="footer-new-col">
          <h4>Quick Links</h4>
          <ul>
            <li><a href="about_us.php">About us</a></li>
            <li><a href="contact_us.php">Contact us</a></li>
            <!--<li><a href="#">FAQ</a></li>-->
            <li><a href="#">Profile</a></li>
          </ul>
        </div>
        
        <div class="footer-new-col">
          <h4>follow us</h4>
          <div class="social-links">
            <a href="https://www.facebook.com/monsoonvibes/?paipv=0&eav=AfZpBwqPtSXZtMH65SXYth8zMXVn66ngzKdU58PQvx1ZMABzbpEHV9J5qSZ3WcOGdWE&_rdr"><i class="fab fa-facebook-f"></i></a>
            <a href="#"><i class="fab fa-twitter"></i></a>
            <a href="#"><i class="fab fa-instagram"></i></a>
            <a href="#"><i class="fab fa-linkedin-in"></i></a>
            <a href="#"><i class="fab fa-youtube"></i></a>

          </div>
        </div>
      </div>
    </div>
 </footer>
<footer class="py-1 footer">
    <div class="container">
      <p class="m-0 text-center " style="color: gray;">Copyright @ 2024. Workmate infotech Pvt Ltd All rights reserved</p>
    </div>
  </footer>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css">
<!-- Bootstrap core JS--> 
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script> 
<!-- Core theme JS--> 
<script src="js/scripts.js"></script>
</body>
</html>
<!-- Global Footer Section Ends-->