Hi Davy, I hope this helps. best regards
<?php $gray = 1; $colors[0] = "#efefef"; $colors[1] = "#d3d3d3"; echo "<table cellpadding=\"2\" cellspacing=\"1\"bgcolor=\"#ffffff\">\n"; while ($row=mysql_fetch_array($result)) { $gray = !$gray; echo "<tr bgcolor=\"" . $colors[$gray] . "\">\n"; echo "<td>" . row['products'] . "</td>\n"; echo "</tr>\n"; } echo "</table>\n"; ?> -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php