Re: Alternate row colours - what is wrong with this code?
| From: | Chris Hayes | Date: | Fri, 17 Jan 2003 12:25:13 +0000 |
| Subject: | Re: Alternate row colours - what is wrong with this code? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-131991@lists.php.net to get a copy of this message | ||
At 13:11 17-1-2003, you wrote:
I want alternating colours in the output table. Can someone tell me what is wrong with this code? I get the data but no alternating colours.It has to do with the $cols[$i++%2] part. When I try to print $i++%2 the outcome varies between 1 and none. Somehow the complete row is not show anymore. The easiest way is to stop trying this approach and move to the tested versions i mailed to this list about an hour ago. Further i would suggest to keep the form within the <td></td> bit and not overlap it.