Pop this in your loop $bgcolor = ($i++ % 2) ? '#FFFFFF' : '#EEEEEE';
echo "<tr bgcolor=\"$bgcolor\">"; olinux --- CF High <[EMAIL PROTECTED]> wrote: > Hey all. > > I'm coming from Cold Fusion to PHP; in CF I could > alternate rows with the > following: > > <tr bgcolor="###Iif(((CurrentRow MOD 2) is > 0),de('FFFFFF'),de('EEEEEE'))#"> > > Any ideas how to do this in PHP? > > Thanks for clues, > > --Noah > > -- > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php