  <div id="content">
      <div id="bgcon">
        <div id="topcon"><h3>Welcome to our website</h3></div>
        <div id="midcon">
          <?php $posts=$this->fun->getone('posts',18);
				  if($posts!=FALSE){
				  foreach($posts->result() as $row):
				  endforeach;}
				  
				
		    ?>
		    <?php if($row->pic){?> <img src="<?php echo base_url();?>uploads/posts/<?php echo $row->pic;?>" style="float:left;padding:5px;width:350px;height:250px" /><?php }?>
<?php   echo $row->details;?>
        </div>
        <div id="bcon"></div>
      </div>
      
