How To Create Alternating Row Colors in PHP

June 20, 2007

[From webreference]

Almost every database driven Web site uses alternating row colors when displaying a list of records, a concept used all over the Internet. You've seen it used, you like it, and now you want to do it yourself. But you're not sure how to accomplish it. Well you've come to the right place. I'm going to discuss the basic idea behind achieving this and give some concrete examples demonstrating different ways to implement it.

The article continues at http://www.webreference.com/programming/php_color/