How to format every secound row in a database result

From: Date: Wed, 30 Mar 2005 15:05:30 +0000
Subject: How to format every secound row in a database result
Groups: php.general 
Request: Send a blank email to php-general+get-211883@lists.php.net to get a copy of this message
Hi! I wish to format the output of a database select. The result is presented in a table, in which i'd like to present everey secound row with a different background color. My idea was to test if the remaining number of rows where a prime number or not, and by that determent if the background color should be white or som ivory-like color to improve the readability in the result table... Hope to hear from anyone with experience in similar matters... TIA! Georg Herland, Norway

« previous php.general (#211883) next »