array loops

From: Date: Fri, 01 Dec 2000 14:05:25 +0000
Subject: array loops
Groups: php.general 
Request: Send a blank email to php-general+get-28200@lists.php.net to get a copy of this message
Hi I hope someone will be able to help with my mental block. I am pulling some details from the db and putting these into a table. I want each row to alternate the background color. I have a while loop printing out the db results and 2 background colors in a an array, so I need it print each of the colors, then start again till there are no more results. I can't seem to work it out trhough. Any help will be gratefully received M@

« previous php.general (#28200) next »