Re: [PHP] Row colors

2001-04-09 Thread Rikul
] 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

RE: [PHP] Row colors

2001-04-09 Thread Maxim Maletsky
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

Re: [PHP] Row colors

2001-04-09 Thread Jason Stechschulte
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";

[PHP] Row colors

2001-04-08 Thread Mike P
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++)

Re: [PHP] Row colors

2001-04-08 Thread Joe Stump
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 =

Re: [PHP] Row colors

2001-04-08 Thread Gfunk
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

Re: [PHP] Row colors

2001-04-08 Thread Joe Stump
/ 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

Re: [PHP] Row colors

2001-04-08 Thread Manuel Lemos
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

Re: [PHP] Row colors

2001-04-08 Thread Harshdeep S Jawanda
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