Hello, I would like to generate a table that alternates background colors for each <tr>
i can probably accomplish this if i remembered the function to check if a number is divisible by 2.
please let me know how i can accomplish this.
thanks, -mike
i used the "same" thing for my background:
$SecondeHasard = Date("s"); if( ($SecondeHasard % 2) == 0) { print("background = \"kids_hotcrotte.jpg\" "); } else { print("background = \"Coca-Cola Hot-Dog metal sign.jpg\" "); }
$row_count = 0;
while($row = db_fetch_array($result)) { if($row_count % 2 == 0) { echo "<TR BGCOLOR=#CCCCCC>\n"; } else { echo "<TR BGCOLOR=#999999>\n"; } $row_count++; }
thanks a lot!
I love this forum.. come to ask one question, find the answers to many...
Heck Mike H. That is why I come here often. That and you get to be flamed by Van! Where else can you get that type of service. 🙂 ** Van you know I'm down with ya! You can always learn new things and pick up new tricks. Ziggs
yea, now if someone can just answer my other question on grids in pdf files.