Re: alternating table entry colors

From: Date: Sat, 11 Dec 2004 01:21:45 +0000
Subject: Re: alternating table entry colors
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-204020@lists.php.net to get a copy of this message
Brad Ciszewski wrote:
i need some assistance making my table (rows) change color for every other data. here is what i have so far, but i get a "unexpected T_STRING error". this error's line is: if($thisRow mode 2 == 0){
I beleive you want if($thisRow % 2 == 0) not if($thisRow mode 2 == 0) http://us2.php.net/operators.arithmetic

« previous php.general (#204020) next »