HOME


sh-3ll 1.0
DIR:/chroot/home/laughingplants/laughingplants.com/html/
Upload File :
Current File : /chroot/home/laughingplants/laughingplants.com/html/community.php
<?php include 'header.php'; ?>

	<section id="menu_transparent" style="background-image:url('images/community_page.jpg')">
		<div class="container">
			<div class="col-md-12 banner_top_10" >
				<div class="row">
					<div class="col-md-7">
						<h2 style="margin-top: 20%;">Community</h2>
						<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
					</div>
					
					<div class="col-md-5 banner_img_right">
						<img src="images/community_img.png" class="img-responsive">
					</div>
				</div>
			</div>
		</div>
	</section>
	
	<section class="community">
		<div class="container">
			<div class="col-md-12" style="margin-top: 25px;">
			   <?php 
			   $select_community= $con->prepare("SELECT * FROM tbl_community ORDER BY id DESC");
			    
			   $select_community->execute();
			   while($fetch_community = $select_community->fetch(PDO::FETCH_ASSOC))
			   {	
			   ?>
				<div class="row mt-25 pb-25">
					<div class="col-md-4">
						 <img src="com_images/<?php echo $fetch_community['com_image']; ?>" class="img-responsive"> 
					</div> 
					<div class="col-md-8">
						 <h2><?php echo $fetch_community['com_name']; ?></h2> 
						<?php  $com_details =htmlspecialchars_decode($fetch_community['com_details']);
						echo substr($com_details,0,400).' ....';
						?> 
						<p><a href="community-detail.php?id=<?php echo $fetch_community['id']; ?>">Find Your Plant</a></p>
					</div>
				</div>
			  <?php 
			   }
			 ?>	  
			</div>
		</div>
	</section>
	
	 
<?php include 'footer.php'?>