Tengo un bucle realizado de la manera siguiente:
Código PHP:
<?php
while ($row = mysql_fetch_array($result_jugadores)) {
//Contador de celdas
$posicion_jugadores++;
$id_jugador = $row["ID_JUGADOR"];
//Aquí quiero que ponga la primera fila azul y la siguiente verde, la siguiente azul y la siguiente verde...
echo "<tr onMouseOver=\"this.bgColor='#66CCCC';\" onMouseOut=\"this.bgColor='#339999';\">";
$result_usuarios = mysql_query("select ID, NOMBRE, APELLIDOS from USUARIOS where ID = '$id_jugador'",$link);
//Aquí llama a otro SELECT, no procupaaaarse
if ($row = mysql_fetch_array($result_usuarios))
$apellido = $row["APELLIDOS"];
$nombre = $row["NOMBRE"];
echo "<td><div align='center'><font color='#FFFFFF' size=\"1\">$posicion_jugadores</font></div></td>";
echo "<td colspan=\"4\" ><font color='#FFFFFF' size=\"1\"> · $nombre";
echo " $apellido</font></td>";
echo "<td><a href=\"acta.php?dni=%s&id_ranking=%d\"><font color='#FFFFFF' size=\"1\">Ver ficha</font></a></td>
</tr>"; }
?>
¿Cómo se puede poner un color diferente en las filas de mi tabla?
Gracias