http://tithonous.mailxing.in/infra.php
<?php
$sql=sqlfetch('select * from infrastructure ');
if(count($sql))
foreach($sql as $infa)
{
$id=$infa['id'];
// echo $id;
// print_r($infra);die;
if($id%2==0)
{
?>
<div class="row mar-t-20">
<div class="col-sm-12 col-md-7">
<div class="about-us-sections-left">
<h2 class="common-heading"><?php echo $infa['name']; ?> <span class="block-head"></span></h2>
<p><?php echo $infa['des']; ?> </p>
</div>
</div>
<div class="col-sm-12 col-md-5">
<div class="about-us-sections-right"> <img src="upload/<?php echo $infa['photo']; ?>" alt="about us"> </div>
</div>
</div>
<?php
}
else
{
?>
<div class="row mar-t-20">
<div class="col-sm-12 col-md-5">
<div class="about-us-sections-right"> <img src="upload/<?php echo $infa['photo']; ?>" alt="about us"> </div>
</div>
<div class="col-sm-12 col-md-7">
<div class="about-us-sections-left">
<h2 class="common-heading"><?php echo $infa['name']; ?><span class="block-head"></span></h2>
<p><?php echo $infa['des']; ?></p>
</div>
</div>
</div>
<?php
}
}
?>
<?php
$sql=sqlfetch('select * from infrastructure ');
if(count($sql))
foreach($sql as $infa)
{
$id=$infa['id'];
// echo $id;
// print_r($infra);die;
if($id%2==0)
{
?>
<div class="row mar-t-20">
<div class="col-sm-12 col-md-7">
<div class="about-us-sections-left">
<h2 class="common-heading"><?php echo $infa['name']; ?> <span class="block-head"></span></h2>
<p><?php echo $infa['des']; ?> </p>
</div>
</div>
<div class="col-sm-12 col-md-5">
<div class="about-us-sections-right"> <img src="upload/<?php echo $infa['photo']; ?>" alt="about us"> </div>
</div>
</div>
<?php
}
else
{
?>
<div class="row mar-t-20">
<div class="col-sm-12 col-md-5">
<div class="about-us-sections-right"> <img src="upload/<?php echo $infa['photo']; ?>" alt="about us"> </div>
</div>
<div class="col-sm-12 col-md-7">
<div class="about-us-sections-left">
<h2 class="common-heading"><?php echo $infa['name']; ?><span class="block-head"></span></h2>
<p><?php echo $infa['des']; ?></p>
</div>
</div>
</div>
<?php
}
}
?>