A small help on the looping:
$b=false; foreach($MyList as $name) { ?>
= htmlspecialchars($name); ?>
} ?>
By saying $b=!$b, it automatically alternates between true and false. Since false prints as "", and true prints as "1", then by defining css classes row and row1, you can get your altering rows without any trouble.
consider using :first-child css to style the first one differently.