Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/01/2003, 09:57
Avatar de Cain
Cain
 
Fecha de Ingreso: enero-2002
Ubicación: Catalunya
Mensajes: 6.459
Antigüedad: 22 años, 3 meses
Puntos: 17
Código PHP:
<?php

for ($i=0$row mysql_fetch_array($result_jugadores), $i++) {
    

//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...    
if ($i 1) {
echo 
"<tr onMouseOver=\"this.bgColor='#66CCCC';\" onMouseOut=\"this.bgColor='#339999';\">";
}
else {
<
tr onMouseOver="this.bgColor='#339999';\" onMouseOut=\"this.bgColor='#66CCCC';\">";}
    
$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\">&nbsp;&nbsp; · $nombre";

    echo 
"&nbsp;$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>"
; }

     
?>
__________________
M a l d i t o F r i k i