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
> 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]."\
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
3 matches
Mail list logo