Ver Mensaje Individual
  #6 (permalink)  
Antiguo 06/01/2012, 02:10
Avatar de waldragon
waldragon
 
Fecha de Ingreso: mayo-2010
Mensajes: 735
Antigüedad: 14 años
Puntos: 55
Respuesta: Sacar de un while divs de 2 colores

crea dos divs, uno con background de un color y otro de otro, luego...

Código PHP:
Ver original
  1. $order=1;
  2. $sent="SELECT * FROM ETC...";
  3. $result=mysql_query($sent);
  4. while($ver=etc etc){
  5. if($order==1){echo"<div id=rojo>";
  6. $order=0;
  7. }else{echo"<div id=azul>";
  8. $order=1;
  9. }
  10. echo"texto a mostrar</div>";
  11. }//fin while

Creo que funciona...