i have a problem with displaying tq records in each row of a list
my code look like this

<ol class="list">
<?php
$i = 0;
foreach ($works as $work):
        $class = null;
        if ($i++ % 2 == 0) {
                $class = ' class="altrow"';
        }
?>
        <li class="clearfix">
                <div class="side-info">
                 // all the thing that to be displyed here //
<?php endforeach;?>
</ol>

the results i am getting are displayed one in each row
but i want to display two results in each row

any help please
thankx in advance

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to