On 4/17/06, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> I know that this is simple, and again I am operating on little rest in
> the quest to get a site launch by sometime tomorrow evening.
>
> I have a table of data and I want to display items by two's, i.e.
>
> Item 1     Item 2
> Item 3     Item 4
> Item 5
>
> ...and so on. I seem to remember doing this using mod to calculate if I
> had divided by 2. I am still searching for info, but I am missing it
> somehow. Does anyone know where I can find an example of this or a code
> snippet? Thanks truckloads!

Something like this?

$c = 0;
while($c < $itemcount) {
  if ($c % 2 == 0) ....
  $c++;
}


--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to