
17/11/2003, 07:21
|
| | Fecha de Ingreso: mayo-2002
Mensajes: 486
Antigüedad: 22 años, 10 meses Puntos: 0 | |
Problemas al Sumar contenido de array Me gustaria sumar el "TotalIGV"
de una tabla. esta es mi consulta:
-------------------------------------------------------------------
$result3=mysql_query("select * from docto_cabecera where CodPlaca='$cliente' and NumOt=$row1[NumOt]",$link);
$row3=mysql_fetch_array($result3);
$toot=$row3;
$desc_dos=0;
foreach($toot as $toti) {
$desc_dos=$desc_dos+$toti['TotalIGV'];
}
echo round($desc_dos,2); // sale un numero que no coincide
----------------------------------------------------------------------------
Les agradecere mucho si me ayudan con este lio.
gracias |