ok

Mini Shell

Direktori : /home2/selectio/public_html/tnpsctestbatch.com/
Upload File :
Current File : /home2/selectio/public_html/tnpsctestbatch.com/view_blog.php

<?php include 'header.php';

    $blog_id = $_GET['blog_id'];

    $quey_blog = $pdo->prepare("SELECT * FROM tbl_blog WHERE status=1 AND id=".$blog_id);
   	$quey_blog->execute();
   	$result_blog = $quey_blog->fetchAll(PDO::FETCH_ASSOC);
   	$blog_total=$quey_blog->rowCount();


?>

<style>

    .twm-job-self-wrap .twm-job-self-info .twm-job-self-top .twm-mid-content {
    position: relative;
    padding-top: 20px;
}
    
</style>




    <!-- CONTENT START -->
         <div class="page-content">
    
             
    
    
    
             <!-- OUR BLOG START -->
             <div class="section-full  p-t120 p-b90 bg-white">
                 <div class="container">
                
                     <!-- BLOG SECTION START -->
                     <div class="section-content">
                         <div class="row d-flex justify-content-center">
                        
                             <div class="col-lg-8 col-md-12">
                                 <!-- Candidate detail START -->
                                 <div class="cabdidate-de-info">
                                     <div class="twm-job-self-wrap">
                                         <div class="twm-job-self-info">
                                             <div class="twm-job-self-top">
                                                 <div class="twm-media-bg">
                                                     <img src="admin/<?= $result_blog[0]['blog_image'] ?>" alt="#" />
                                                     <div class="twm-jobs-category green"><span class="twm-bg-green">New </span></div>
                                                 </div>
                                                 <div class="twm-mid-content">
                                                        <h1 style="font-size: 50px;text-align: justify;"><?= $result_blog[0]['heading'] ?></h1>
                                                        <p style="font-size: 1.3rem;font-weight: 700;"> <?= $result_blog[0]['tag_line'] ?> </p>
                                                 </div>
                                                 <div>
                                                     <?= $result_blog[0]['content'] ?>
                                                 </div>
                                                 
                                             </div>
                                            
                                         </div>
                                     </div>
    
                                        
    
            
    
                                    
                                 </div>
                             </div>
                            
                             <div class="col-lg-4 col-md-12 rightSidebar">
    
                                 <div class="widget recent-posts-entry">
                                     <h4 class="section-head-small mb-4">Recent Article </h4>
                                     <div class="section-content">
                                         <div class="widget-post-bx">
                                             
                                             <?php 
                                             
                                                $blog_id = $_GET['blog_id'];

    $recent_artical = $pdo->prepare("SELECT * FROM tbl_blog WHERE status=1 AND type=1");
   	$recent_artical->execute();
   	$result_artical = $recent_artical->fetchAll(PDO::FETCH_ASSOC);
   	$blog_artical=$recent_artical->rowCount();

                  if($blog_artical > 0){   
                      foreach( $result_artical as $result_artical){
                                             ?>

                                             <div class="widget-post clearfix">
                                                 <div class="wt-post-media">
                                                     <img src="admin/<?= $result_artical['thumpnail_image'] ?>" alt="" />
                                                 </div>
                                                 <div class="wt-post-info">
                                                     <div class="wt-post-header">
                                                         <span class="post-title"> 
                                                             <a href="view_blog.php?blog_id=<?= $result_artical['id'] ?>" ><?= $result_artical['heading'] ?></a>
                                                         </span>
                                                     </div>                                                    
                                                 </div>
                                             </div>
                                                <?php } }else{ echo 'No Recent Article'; } ?>
                                            
                                                
                                         </div>
                                     </div>
                                 </div>
    
    
                             </div>
                        
                         </div>
                                                
                     </div>
                    
                 </div>
                
             </div>   
             <!-- OUR BLOG END -->          
            
     
         </div>
    <!-- CONTENT END -->



<?php include 'footer.php' ?>

Zerion Mini Shell 1.0