RE: [PHP] Two things

2001-01-17 Thread Benjamin Munoz
Did you mean this? -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 from a database I would like to display them w

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 "".$row[0]."\

[PHP] Two things

2001-01-17 Thread Phil Labonte
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? The other question is what is the code to get the ip of the client that is accessing your site? I know that one is