this is not restricted to mysql, it is always the same.
the entries will be displayed in some kind of loop. if it is a for loop, you've already got an internal counter. else, e.g. in a while loop, you'd need to increment an internal counter in the loop.
then you can use this counter to set the background color as in nnichols example ($i being the internal counter):
$color = ($i%2==0) ? '#FFFFFF' : '#C0C0C0';
echo '<tr bgcolor="'.$color.'"><td>'.$entry.'</td></tr>';
this means: if it can evenly be devided by 2 (which obviously would be the case in every second row) use the first color, else the second).