Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/05/2006, 16:49
all-ill
 
Fecha de Ingreso: junio-2002
Mensajes: 750
Antigüedad: 21 años, 11 meses
Puntos: 22
Quizás lo puedes realizar en una sola consulta, sin tener que recorrer todo el array y realizar cada vez una consulta por ci_be:

Código PHP:
$result BDConexion("select ci_be, sum(monto_oc_dls) as sum_monto from solicitud WHERE fecha_sys BETWEEN '$fecha_ant' AND '$fecha_hoy' group by ci_be") or die($error_conex);

if(
mysql_num_rows($result) > 0) {
  while(
$r mysql_fetch_array($result)){
    echo 
$r['ci_be'] . ' = ' $r['sum_monto'] . ' Dolares<br/>';
  }

Salu2