Ver Mensaje Individual
  #11 (permalink)  
Antiguo 18/09/2013, 15:28
Avatar de emilio_viguri
emilio_viguri
 
Fecha de Ingreso: junio-2011
Ubicación: Mexico
Mensajes: 116
Antigüedad: 12 años, 10 meses
Puntos: 3
Respuesta: For en lugar de Do While

Disculpen me tarde pero lo solucione asi

Código PHP:
Ver original
  1. <?
  2. if(isset($iniciorr)):
  3.     mysql_select_db($database_conremision, $conremision);
  4.     $queryF = "SELECT DISTINCT Rrappyd AS RR FROM partidas WHERE CAST(MID(Rrappyd, 2, LENGTH(Rrappyd)-1) AS UNSIGNED) BETWEEN $iniciorr AND $finrr ORDER BY Rrappyd";
  5.     $dato = mysql_query($queryF, $conremision) or die(mysql_error());
  6.     do{
  7.         if(isset($row['RR'])){
  8.                 $idarray = str_replace("T", "", $row["RR"]);
  9.             $idarray += 0;
  10.             $idarray.'<br>';
  11.             $RR[$idarray] = $row["RR"];
  12.         }
  13.     } while ($row = mysql_fetch_assoc($dato));
  14.  
  15. for($i=$iniciorr; $i<=$finrr; $i++):
  16.     #contenido y analisis de remiciones.
  17.     if($RR[$i] == NULL){
  18.         echo $i;
  19.         $norr++;
  20.     }else{
  21.         echo '<strong><a href="remisionrappyd.php?Rrappyd='.$RR[$i].'" target="Rrappyd">'.$RR[$i].'</strong>';
  22.         $sirr++;
  23.     }
  24.  
  25. ############################
  26.     if($td<=$nc) echo '</td>';
  27.     if($td==$nc){ echo '</tr>'; $td=0; $tr=1; }
  28.  
  29. endfor; if($td>1 and $tr=0) echo '</tr>';
  30. ?>