<?php
$col1="#CCCCCC";
$col2="#DDDDDD";
$col=$col1;
// code to get database records
while (<your conditions here>) {
// print table row using bgcolor=$col to set the row color
// alternate row color
$col == $col1 ? $col = $col2 : $col = $col1;
}
?>
-geoff