Thank you both for your replies
All the Best
Lisa

-----Original Message-----
From: Samuel Torton [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 12:34 PM
To: Samuel Torton
Cc: Rubanowicz, Lisa; '[EMAIL PROTECTED]'
Subject: Re: [PHP-DB] Odd - Even Results in a Table - Newbie question


sorry, i made a mistake.
correct with this :

----------------------------------
$j = 0 ; $k = 0 ;
for ($i=0;$i<rows;$i++)
{
  $tmp = $i % 2 ;
  switch ($tmp)
  {     case "0":
               even[$j++] = row[$i] ;
               break;
        case "1":
               odd[$j++] = row[$i] ;
               break;
  }
}
----------------------------------

redards,
samuel

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to