Re: Two color rows in table inside while iteration
| From: | Jay Ess | Date: | Fri, 30 Apr 2010 14:37:30 +0000 |
| Subject: | Re: Two color rows in table inside while iteration | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-304778@lists.php.net to get a copy of this message | ||
Paul M Foster wrote:
+1 This thread came up before, and tedd's solution was the least complex, as far as I could tell. I shamelessly stole his code and regularly use it in my own projects. ;-} Or if one choose to use Smarty template.<tr bgcolor="{cycle values="#eeeeee,#d0d0d0"}"> http://www.smarty.net/manual/en/language.function.cycle.php