I want to divide my 12 column space in to two categories of 3 and 9 col width.on the first side i have some information and on second 9 columns width i want to display automatically generated content through php using mysql.Here is the first side First side code:
<div class="container">
<div class="row col-md-12">
<div class="col-md-3">
<div class="well">some content</div>
<div class="well1">some content2</div>
</div>
Here is the second side automatically generated coded:
<div class="col-md-9">
<?php extract($_POST);
extract($_GET);
include "cw_admin/pageing.php";
$limit = 30;
if($page)
$start = ($page - 1) * $limit;
else
$start = 0;
$filePath="trending.php";
$select="select * from offers where trending='Yes' order by guid desc Limit $start, $limit ";
$select1="select * from offers where trending='Yes'";
$result=mysql_query($select,$con);
$total=mysql_num_rows(mysql_query($select1,$con));
$otherParams="catid=$catid&shopid=$shopid";
while ($row=mysql_fetch_assoc($result)) {
$det=mysql_fetch_array(mysql_query("select * from category where id='$row[cat_id]'"));
$shop=mysql_fetch_array(mysql_query("select * from shop where guid='$row[shopname]'"));?>
<div class="col-md-3">
<div class="thumbnail">
<?php if($shop[imagefile]!=''){?><img src="imagefiles/<?php echo $shop[imagefile];?>" class="img-responsive" "><?php } ?>
<div class="caption">
<h4 class="pull-right"><?php echo $row[rate];?></h4>
<h4><?php echo $row[productname];?></h4>
<p><?php echo $row[description];?></p>
<p><?php if($row[offer_end]!='0000-00-00'){?>Offer Ends On: <?php echo $row[offer_end];}?></p>
<p><?php if($row[coupon]!=''){?>Coupon Code:<?php echo $row[coupon];?><?php } ?></p>
<?php
if($_SESSION[userid]!='')
{ ?>
<a href="<?php echo $row[main_url];echo "&";echo $row[affid];echo "&";echo $row[memid];echo "=";echo $details[userid];echo $row[deepid];?>" target="_blank" class="btn btn-primary" > Earn <?php echo $row[value];?> Points</a>
<?php }
else { ?>
<a href="#1" data-toggle="modal" data-target="#myModal2" class="btn btn btn-primary" >Earn <?php echo $row[value];?> Cash</a>
<?php };
?>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
I have two questions: 1)i gave 2 side as col-md-9 as outer and col-md-3 as inner but still in my output there are 4 items in the list.! 2)Even if a small increase in the height of thumbnail it results in removal of thumbnail in the next row.Pls i am a new bie help me in this..we got cheated by a designer so had to do everything again