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
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
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
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
..