Hey. In a guestbook the im building, I want to set the <tr> bgcolor in a difrent color each msg (the same effect is also here in these forums).. The code is a while loop (to get mysql results)... How can I do it ???
thanx
its pretty easy you do something like this: <loop starts> $i++; if( $i%2) { $bgcolor = 'red'; } else { $bgcolor='green'; } <TR bgcolor=$bgcolor> <loop ends> you know?