Sorry, I didn't cut that right: Here it is: <table class="results_inner"> <?php foreach ($returned_rows as $key => $value) { if ($key & 1) { echo "<tr><td class='results_blue'>".$value['lastname'].", ".$value[firstname]."</td></tr><br>"; } else { echo "<tr><td class='results_white'>".$value['lastname'].", ".$value[firstname]."</td></tr><br>"; } } ?> </table> -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php