foreach fromquery


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1.  
  2. <?php if(isset($records)) : foreach($records as $row) : ?>
  3.  
  4. <div class="span-4 article">
  5. <a href="" >
  6. <span class="blackBg"></span>
  7. <img src="<?php echo base_url();?>img/portfolio/<?php echo $row->NomImage; ?>"/>
  8. </a>
  9. <h3><a href=""><?php echo $row->title; ?></a></h2>
  10. </div>
  11.  
  12. <?php endforeach; ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.