cake-php@googlegroups.com
[Top] [All Lists]

Re: can you help me please

Subject: Re: can you help me please
From: John Andersen
Date: Wed, 9 Feb 2011 06:38:36 -0800 PST
Invalid HTML, missing end tags, please correct!
Enjoy,
   John

On 9 Feb., 11:20, mousa777 <mousa.kal...@xxxxxxxxx> 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

-- 
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
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at 
http://groups.google.com/group/cake-php

<Prev in Thread] Current Thread [Next in Thread>