<?php
$bgcolor = ($i % 2 == 0) ? " BGCOLOR='#E3E3E3'" : "";
?>
<TR<?=$bgcolor?>>
> > Can someone please help me with the code?
>
> $cols = array('#ff0000','#00ff00');
> $i = 0;
> while(your_loop_to_output_each_row) {
> echo '<tr bgcolor="'.$cols[$i%2].'"><td>$row_data</td></tr>';
> }
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

