Re: [PHP] Two things

2001-01-17 Thread Rasmus Lerdorf
When I get a list of items from a database I would like to display them with alternating colors. Does anyone know how or where I can get some code that will show me how to do that? $col = 0; $colors = array('#ff','#00'); while($row=mysql_fetchrow($result)) { echo "td

RE: [PHP] Two things

2001-01-17 Thread Benjamin Munoz
Did you mean this? ?php $i = 0 $colors = array('#ff','#0'); ? -Ben -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 11:52 AM To: Phil Labonte Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Two things When I get a list of items