Re: Odd - Even Results in a Table - Newbie question
| From: | Samuel Torton | Date: | Fri, 11 May 2001 11:34:03 +0000 |
| Subject: | Re: Odd - Even Results in a Table - Newbie question | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-9249@lists.php.net to get a copy of this message | ||
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