Re: I feel so stupid asking this question....LOL
| From: | Richard Baskett | Date: | Sun, 19 May 2002 19:37:40 +0000 |
| Subject: | Re: I feel so stupid asking this question....LOL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-98379@lists.php.net to get a copy of this message | ||
Well within a loop you can do something like this:
<tr bgcolor="<?=($i%2 == 0) ? '#FFFFC0' : '#FFF00O';?>">
Just make sure that $i is being incremented each time through the loop and
there you go! :)
Rick
Be kind. Everyone you meet is fighting a hard battle - John Watson
> From: "vins" <vins@webonline.co.za>
> Organization: Personal
> Reply-To: "vins" <vins@webonline.co.za>
> Date: Sun, 19 May 2002 21:08:28 +0200
> To: php-general@lists.php.net
> Subject: [PHP] I feel so stupid asking this question....LOL
>
> How do i alternate the row color again.
> You get so used to dreamweaver doing everything for you and now when
> dreamweaver doesn't want to work back to notepage.
> But to remember how to alternate row colors.......
>
> I'm lost.
>
> PLZ PLZ PLZ PLZ
>
> LOL
> :)
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>