   <?php include('includes/db.php') ?>
   <?php include('includes/header.php') ?>
	<section class="hero-wrap" style="background-image: url('images/z.jpg');" data-stellar-background-ratio="0.5">
      <div class="overlay"></div>
      <div class="container">
        <div class="row no-gutters slider-text align-items-center">
          <div class="col-md-8 ftco-animate d-flex align-items-end">
          	<div class="text w-100 pt-3 mt-5">
			  <?php
 $sql=mysqli_query($db, "SELECT * FROM header");
 while($row=mysqli_fetch_assoc($sql)){
$sub=$row['sub'];
$msg=$row['msg'];

?>

	            <h1 class="mb-4"><?php echo $sub?> </h1>
	            <p class="mb-4"><?php echo $msg?></p>
				<p><a href="services.php" class="btn btn-primary py-3 px-4 rounded-circle">Our Services</a> <a href="contact.php" class="btn btn-danger py-3 px-4 rounded-circle">Contact us</a></p>              <?php } ?>
              
            </div>
          </div>
        </div>
      </div>
    </section>

		
		<section class="">
      <div class="container">
        <div class="row justify-content-center mb-5">
           <div class="col-md-7 heading-section text-center">
		  <h4 class=" mt-4 text-center text-danger"><b>Our Services</b></h4>
          </div>
        </div>
        <div class="row d-flex">

        <?php
 $sql=mysqli_query($db, "SELECT * FROM service");
 while($row=mysqli_fetch_assoc($sql)){
$image=$row['image'];
$no=$row['no'];
$sub=$row['sub'];


?>
      
        <div class="col-md-4 d-flex ftco-animate">
          	<div class="blog-entry justify-content-end">
              <div class="text text-center">
			  <a href="services.php" class="block-20 img" name="img" style="background-image: url('admin/serimage/<?php echo $image?>');">
              </a>
	              <div class="meta text-center mb-2 d-flex align-items-center justify-content-center">
                	<div>
                		<span class="day"><?php echo $no?></span>
                		
                	</div>
                </div>
                <h3 class="heading mb-3"><a href="#"><?php echo $sub?></a></h3>
			
              </div>
            </div>
          </div>
<?php }?>

		
      </div>
	  <center>
			<a href="services.php" class="btn btn-danger mb-2">Read more</a>
			</center>
	  </div>
	  
    </section>	
	
  <!-- AUTHORS STARTS HERE -->
 
  <section class="ftco-section testimony-section ftco-no-pb">
    	<div class="img img-bg border" style="background-image: url(images/image_6.jpg);"></div>
    	<div class="overlay"></div>
      <div class="container">
        <div class="row justify-content-center mb-5">
          <div class="col-md-7 text-center heading-section heading-section-white ftco-animate">
            <h2 class="mb-3">About Our Authors</h2>
          </div>
        </div>
        <div class="row ftco-animate">
          <div class="col-md-12">
            <div class="carousel-testimony owl-carousel ftco-owl">
            <?php
 $sql=mysqli_query($db, "SELECT * FROM authors");
 while($row=mysqli_fetch_assoc($sql)){
$image=$row['image'];
$idn=$row['idn'];
$name=$row['name'];
$title=$row['btitle'];

?>
  
           
              <div class="item">
                <div class="testimony-wrap py-4">
                	<div class="icon d-flex align-items-center justify-content-center"><span class="fa fa-quote-left"></div>
                  <div class="img">
                    <center>
				      <img src="admin/authorimage/<?php echo $image?>" alt="">
              </center>
                    <div class="d-flex align-items-center text-center">
                    	<div class="pl-3">
						<p class="name"><?php echo $name?></p>
		                 <span class="position"> <?php echo $title?></span>
						 <p class="text-center"><a class="btn btn-danger btn-sm" href="authoridn.php?idn=<?php echo $idn?>">Read</a></p>
							
		                    
		                  </div>
	                  </div>
                  </div>
                </div>
              </div>
              <?php }?>
            </div>		
          </div>
        </div>
      </div>
    </section>

	<!-- AUTHORS ENDS HERE -->
 
 <style>
  .item .img img{
    width: 70%;
  }
 </style>
	 
	 <!-- BOOKS STARTS HERE -->
  
	 <section class="ftco-section testimony-section ftco-no-pb mt-4">
    	<div class="img img-bg border" style="background-image: url(images/h.jpg);"></div>
    	<div class="overlay"></div>
      <div class="container">
        <div class="row justify-content-center mb-5">
          <div class="col-md-7 text-center heading-section heading-section-white ftco-animate">
            <h2 class="mb-3">Our Book Catalogue</h2>
          </div>
        </div>
        <div class="row ftco-animate">
          <div class="col-md-12">
            <div class="carousel-testimony owl-carousel ftco-owl">
    <?php
 $sql=mysqli_query($db, "SELECT * FROM books ORDER BY id DESC");
 while($row=mysqli_fetch_assoc($sql)){
$image=$row['image'];
$idn=$row['idn'];

?>

<div class="item">
                <div class="testimony-wrap py-4">
                	<div class="icon d-flex align-items-center justify-content-center"><span class="fa fa-quote-left"></div>
                  <div class="img">
                    <center>
				  <img src="admin/bookimage/<?php echo $image?>" alt="">
          </center>
                    <div class="d-flex align-items-center ">
                    	<div class="ml-5 mt-2 d-flex justify-content-center">
						<a class="btn btn-danger btn-sm center" href="bookidn.php?idn=<?php echo $idn?>">Read More</a>
		            
		                    
		                  </div>
	                  </div>
                  </div>
                </div>
              </div>

              <?php }?>
                 
              </div>
          </div>
        </div>
      </div>
    </section>

	<!-- BOOKS ENDS HERE -->

	<!-- whatsapp starts here  -->

	<div class="whaticon">
	<a href="https://api.whatsapp.com/send/?phone=2348055877829&text&app_absent=0"><img src="images/what.png" class="img-fluid rounded-circle" alt=""></a>

	</div>
	<!-- whatsapp ends here -->




<!-- Testi ENDS HERE -->





<section class="ftco-section testimony-section ftco-no-pb">
    	<div class="img img-bg border" style="background-image: url(images/bg_4.jpg);"></div>
    	<div class="overlay"></div>
      <div class="container">
        <div class="row justify-content-center mb-5">
          <div class="col-md-7 text-center heading-section heading-section-white ftco-animate">
            <h2 class="mb-3">Kinds Words From Clients</h2>
          </div>
        </div>
        <div class="row ftco-animate">
          <div class="col-md-12">
            <div class="carousel-testimony owl-carousel ftco-owl">
            <?php
 $sql=mysqli_query($db, "SELECT * FROM test");
 while($row=mysqli_fetch_assoc($sql)){
$name=$row['name'];
$testi=$row['testi'];

?>
           
              <div class="item">
                <div class="testimony-wrap py-4">
                	<div class="icon d-flex align-items-center justify-content-center"><span class="fa fa-quote-left"></div>
                  <div class="text">
                    <p class="mb-4"><?php echo $testi?> </p>         
                     <div class="d-flex align-items-center">
                    	<div class="pl-3">
		                    <p class="name"><?php echo $name?> </p>
							
		                  </div>
	                  </div>
                  </div>
                </div>
              </div>
              <?php }?>
            </div>
          </div>
        </div>
      </div>
    </section>




	

    <?php include('includes/footer.php') ?>
