PK

ADDRLIN : /home/anibklip/babekehospital.org/
FLL :
Current File : /home/anibklip/babekehospital.org/news.php

<?php 
include "php/connect-mysql.php"; 
include "php/header.php"; 
?>
<section class="sub-page-banner text-center" data-stellar-background-ratio="0.3">
    <div class="overlay"></div>
  <div class="container">
        	<h1 class="entry-title">News Detail</h1>
          
        </div>
    </section>
    
    
    <div class="sub-page-content">
        
        <div class="container">
        	<div class="row">
        	<div class="col-md-8 blog-wrapper clearfix">
            	<?php
				$sqltot = "select * from  blog_articles WHERE id='".$_GET['id']."' ";
				$resulttot=mysql_query($sqltot);
				if (@mysql_num_rows($resulttot)!=0){
					$rows = mysql_fetch_array($resulttot);
					echo '<h2 class="bordered light">'.$rows['title'].'</h2>
                			<article class="blog-item blog-full-width blog-detail">
                                <div class="blog-thumbnail">
                                <img alt="'.$rows['title'].'" src="images/'.(($rows['featuredImg']!="")?$rows['featuredImg']:'noImg.jpg').'">
                                </div>
                                <div class="blog-content">'.$rows['description'].'</div>
                            </article>';				
				}else{
					echo '<p>No Data Found</p>';
				}
				?>
            </div>
        	<aside class="col-md-4">
            	<div class="sidebar-widget">
                    
                </div>
                <div class="sidebar-widget light">
                	<h2 class="bordered light">Recent <span>News</span></h2>
                    <?php
					$sqlArt = mysql_query("SELECT * FROM  blog_articles where id not in (".$_GET['id'].") order by title desc limit 10");
					while($rowsArt = mysql_fetch_array($sqlArt)){
						echo '<article class="popular-post">
                    	<img src="images/'.(($rowsArt['featuredImg']!="")?$rowsArt['featuredImg']:'noImg.jpg').'" alt="">
                        <h4><a href="news.php?id='.$rowsArt['id'].'">'.$rowsArt['title'].'</a></h4>
                        <p class="popular-date">'.date('d M Y', strtotime($rowsArt['blogDate'])).'</p>
                    	</article>';
					}
				  ?>
                </div>
                
                 
            </aside>
        </div>
        </div>
		
        
    
    <div class="clr"></div>    
</div><!--end sub-page-content-->
<?php include "php/footer.php";?>


PK 99