Well within a loop you can do something like this: <tr bgcolor="<?=($i%2 == 0) ? '#FFFFC0' : '#FFF00O';?>">
Just make sure that $i is being incremented each time through the loop and there you go! :) Rick Be kind. Everyone you meet is fighting a hard battle - John Watson > From: "vins" <[EMAIL PROTECTED]> > Organization: Personal > Reply-To: "vins" <[EMAIL PROTECTED]> > Date: Sun, 19 May 2002 21:08:28 +0200 > To: [EMAIL PROTECTED] > Subject: [PHP] I feel so stupid asking this question....LOL > > How do i alternate the row color again. > You get so used to dreamweaver doing everything for you and now when > dreamweaver doesn't want to work back to notepage. > But to remember how to alternate row colors....... > > I'm lost. > > PLZ PLZ PLZ PLZ > > LOL > :) > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php