Re: [PHP-WIN] output a table

2003-08-20 Thread Veselina Jecheva
Anthony, You can use a variable ($i in the example) and increment its value in the while statement. Then check its value - if its odd or not - this works:-) Good luck:-)) Veselina while($row = odbc_fetch_row($result)) { $i++; ?> "> odbc_result($resu

RE: [PHP-WIN] output a table

2003-08-19 Thread Svensson, B.A.T. (HKG)
Read your mail to fast: Change, "$posts_info=0;", into: "$posts_info++;", then you should get alternate colors. -Original Message- From: Anthony Ritter To: [EMAIL PROTECTED] Sent: 2003-08-20 02:36 Subject: [PHP-WIN] output a table Hi... I'm trying to outp

RE: [PHP-WIN] output a table

2003-08-19 Thread Svensson, B.A.T. (HKG)
CTED] Sent: 2003-08-20 02:36 Subject: [PHP-WIN] output a table Hi... I'm trying to output a table with alternate background color rows. The following snippet outputs a table after connecting to a mySQL database with posts but all of the rows have the same bgcolor. Any help with the syntax

[PHP-WIN] output a table

2003-08-19 Thread Anthony Ritter
Hi... I'm trying to output a table with alternate background color rows. The following snippet outputs a table after connecting to a mySQL database with posts but all of the rows have the same bgcolor. Any help with the syntax will be greatly appreciated. Thank you. Tony Ritter ..