Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/06/2011, 14:48
Avatar de wsoul
wsoul
 
Fecha de Ingreso: octubre-2010
Mensajes: 190
Antigüedad: 13 años, 6 meses
Puntos: 13
Respuesta: Contar de 1 en 1 dentro en un while...

Código PHP:
Ver original
  1. $c = 0;
  2.  while($reg_sucursal = mssql_fetch_array($conexSucursal->result)){
  3. $c++;
  4.  $ventas= $reg_sucursal['VENTAS'];
  5. echo $c;
  6. }
__________________
Compra y Vender artículos en https://www.losredactores.com o una comunidad de webmasters ? https://webeamos.com