| Linux server27.hostingraja.org 2.6.32-954.3.5.lve1.4.93.el6.x86_64 #1 SMP Wed Oct 4 17:04:29 UTC 2023 x86_64 Path : /home/udaipurk/www/websites/samaj/samaj/ |
| Current File : /home/udaipurk/www/websites/samaj/samaj/article.php |
<?php include('header.php');
$aid=$_GET['aid'];
$query=mysqli_query($link,"select * from article where a_id='$aid'");
$res=mysqli_fetch_array($query);
$query2=mysqli_query($link,"select * from photos where album='$aid'");
$res2=mysqli_fetch_array($query2);
$rowCount = mysqli_num_rows($query2);
?>
<article id="ccr-article" >
<h1><a href="" style="color:#CE532A; font-size:28px;"> <b><?php echo $res['title']; ?></b>
</a>
</h1>
<div class="container">
<div class="col-xs-12 article_desc">
<b>Date : <?php echo $res['rdate']; ?></b>
<p style="color:#000; font-size:16px;"><b></b> <?php echo $res['short_des']; ?></p>
<p style="text-align:justify">
<?php echo $res['long_des']; ?>
</p>
</div>
<div class="col-xs-12 article_section">
<div class="article_img" >
<a class="fancybox" rel="group" href="admin/<?php echo $res['photo']; ?>">
<img style="width: 100%; height: auto;" src="admin/<?php echo $res['photo']; ?>" alt="audichyasamaj" >
</a>
</div>
</div>
</div>
</article> <!-- /#ccr-single-post -->
<!--Modified on 09/12/2015 by Raj Kumawat-->
<?php //while ($getid = mysqli_fetch_row($query2)){
// print_r($getid); die();
?>
<article id="ccr-article" >
<!-- <h1><a href="" style="color:#CE532A; font-size:28px;"> <b><?php //echo $getid[2]; ?></b>
</a>
</h1>-->
<div class="container">
<div class="col-xs-12 article_section">
<?php $number=0; while ($getid = mysqli_fetch_row($query2)){
// print_r($getid); die();
?> <div class="col-xs-6 article_img" style="width: 49%;">
<a class="fancybox" rel="group" href="admin/<?php echo $getid[2]; ?>">
<img src="admin/<?php echo $getid[2]; ?>" alt="audichyasamaj" style="margin: 10px 0 0 0;">
</a>
</div>
<?php if ($number % 2 == 0) {?>
<span class="space" style="padding: 5px; width: 10px; float: left;"></span>
<?php } $number++; }?>
<!-- <div class="col-xs-6 article_desc">
<b>Date : <?php //echo $getid[5]; ?></b>
<p style="color:#000; font-size:16px;"><b></b> <?php //echo $getid[3]; ?></p>
<p style="text-align:justify">
<?php //echo $getid[4]; ?>
</p>
</div>-->
</div>
</div>
</article> <!-- /#ccr-single-post -->
<?php //} ?>
<script type="text/javascript">
var $= jQuery.noConflict();
$(document).ready(function() {
$(".fancybox").fancybox();
});
</script>
<?php include('footer.php'); ?>