<?php $oTesti = new Testimonial(); $testiAll = $oTesti->findAllFrom("Testimonial", "1=1 order by sequence"); $idx = 1; if ($oTesti->countFrom('Testimonial', "1=1") > 0) { foreach ($testiAll as $testi) { ?> <div class="testi-list"> <div class="inside"> <div class="testi-left"> <div class="inner"> <span><?php echo $testi->name; ?> </span> </div> </div> <div class="testi-right"> <div class="inner"> <?php echo $testi->description; ?> </div> </div> <div id='clear'> </div> </div> </div> <?php }