Re: Alternating table rows...
| From: | Glenn Sieb | Date: | Fri, 10 May 2002 18:53:36 +0000 |
| Subject: | Re: Alternating table rows... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96988@lists.php.net to get a copy of this message | ||
Austin, you rock :) I've only just started with PHP recently, and was introduced to the ternary operators by reading Rasmus' book (great job, Rasmus!!!), so I'm learning as I go here :)
Thanks buddy!
Glenn
On 01:50 PM 5/10/2002 -0500, Austin Marshall wrote:
$color=($i%2) ? "grey" : "white; will let you change the background color depending on whether or not $i is even or odd.--- Glenn E. Sieb, System Administrator Lumeta Corp. mailto:ges@lumeta.com +1 732 357-3514 (V) +1 732 564-0731 (Fax)