Keeping data from while

From: Date: Sat, 13 Aug 2005 03:12:45 +0000
Subject: Keeping data from while
Groups: php.db 
Request: Send a blank email to php-db+get-40062@lists.php.net to get a copy of this message
I am writing a web script where the background colors of certain rows change when the amount of money changes. For example, my first piece of data is 1.12. my second piece of data is 1.34, my third piece of data is 1.34, and my forth piece of data is 1.5. They would like this on the webpage. 1.12 [light color] 1.34 [dark color] 1.34 [dark color] 1.5 [light color] As you can see, when the amount of cash changes, the background color changes. What I am trying to do is figure out how to keep the old data from my last while statement. How can I do this? Any help is greatly appreciated. Brad Ciszewski

« previous php.db (#40062) next »