Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/11/2010, 14:25
Hidek1
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 14 años, 6 meses
Puntos: 334
Respuesta: sumatoria total

usa un acumulador :S?

Código PHP:
while (/** fetch a consulta **/) {
    
$total += $row['cantidad_a_sumar'];
}
echo 
$total
saludos.
__________________
More about me...
~ @rhyudek1
~ Github