conditional statement inside while loop?
| From: | << z a p a n >> | Date: | Thu, 01 Sep 2005 18:52:55 +0000 |
| Subject: | conditional statement inside while loop? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-221711@lists.php.net to get a copy of this message | ||
Hello everyone,
I'm using a while loop to display a list of people contained in my database.
I'd like to assign different font colors to each depending on which city
they're from, but I can't seem to get an if/elseif/else statement to work
inside the while loop. Is there another way to do this?
Thanks in advance,
Zach