Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/02/2008, 12:02
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años, 9 meses
Puntos: 2135
Re: Ayuda con bucle y incremento

Puedes hacerlo así:
Código PHP:
$contador 0;
while( 
ciclo ) {
        
$contador++;
        if( 
$contador == ) { // para 5 registros
                
$pos $inicio;
        }

Saludos.