On Wed, Feb 9, 2011 at 3:50 PM, mousa777 <[email protected]> wrote:

> 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
>
> OK YOU USE LIMIT  IN MYSQL QUERY 0,1

-- 
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