$bgcolor = ($count++ & 1) ? "blue" : "black";

Then use $bgcolor in your <tr>

---John Holmes...

----- Original Message -----
From: "Rodrigo" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Thursday, October 03, 2002 8:29 AM
Subject: [PHP-DB] Table question....


Hi people, is there a way to print a table with the background switching
colors??? like one blue, the next black, blue, black.......

thanks in advance...  Equipe Pratic Sistemas
        Rodrigo Corrêa
        Fone: (14) 441-1700
        [EMAIL PROTECTED]
        [EMAIL PROTECTED]




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to