]
Cc: [EMAIL PROTECTED]
Sent: Monday, April 09, 2001 1:11 AM
Subject: Re: [PHP] Row colors
Hi,
Just make the modification listed below:
while ($row = mysql_fetch_row($result))
{
$cell_color = ++$i % 2 ? "#C0C0C0" : "#CC";
echo "TR bgcolor=\"$c
AIL PROTECTED]]
Sent: Monday, April 09, 2001 6:30 PM
To: Harshdeep S Jawanda; Mike P
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Row colors
Something like this could work also:
tr bgcolor="? echo
$row_color=="#cc"?$row_color="#c0c0c0":$row_color="#cc" ?&quo
On Mon, Apr 09, 2001 at 12:08:10AM +, Mike P wrote:
I can change the column sof a table with the following code but how do I
change the row colors instead.With the columns I have "i" to manipulate but
not with rows.
while ($row = mysql_fetch_row($result))
{{
echo "TR\n";
I can change the column sof a table with the following code but how do I
change the row colors instead.With the columns I have "i" to manipulate but
not with rows.
while ($row = mysql_fetch_row($result))
{{
echo "TR\n";
for ($i =1;$imysql_num_fields($result);$i++)
tr bgcolor="? $cell_color; ?"
--Joe
On Mon, Apr 09, 2001 at 12:08:10AM +, Mike P wrote:
I can change the column sof a table with the following code but how do I
change the row colors instead.With the columns I have "i" to manipulate but
not with rows.
while ($row =
see changes
Gfunk - [EMAIL PROTECTED] - http://www.gfunk007.com/
- Original Message -
From: "Mike P" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 09, 2001 10:08 AM
Subject: [PHP] Row c
/ td's
echo '/tr';
}
?
On Sun, Apr 08, 2001 at 08:37:26PM -0400, Mike P wrote:
That does not change every other row.
-Original Message-
From: Joe Stump [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 08, 2001 8:11 PM
To: Mike P
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP
Hello Mike,
On 08-Apr-01 21:08:17, you wrote:
I can change the column sof a table with the following code but how do I
change the row colors instead.With the columns I have "i" to manipulate but
not with rows.
while ($row = mysql_fetch_row($result))
{{
echo "TR\n";
for ($i
Hi,
Just make the modification listed below:
while ($row = mysql_fetch_row($result))
{
$cell_color = ++$i % 2 ? "#C0C0C0" : "#CC";
echo "TR bgcolor=\"$cell_color\"\n";
for ($i =1;$imysql_num_fields($result);$i++) {
echo "td$row[$i]/td";
}
}
Mike P wrote:
I can change the
9 matches
Mail list logo