Ver Mensaje Individual
  #5 (permalink)  
Antiguo 12/02/2009, 08:18
warbandit69
 
Fecha de Ingreso: diciembre-2008
Ubicación: http://www.solucionesrios.tk/
Mensajes: 413
Antigüedad: 16 años, 2 meses
Puntos: 19
Respuesta: Totalizar valores de una columna (varchar?)

Para quien lo necesite aqui el codigo:

Código PHP:
<?php $query_total="SELECT SUM( `precio` ) as total FROM `activo` ";
$result=mysql_query($query_total) or die(mysql_error());
$valores mysql_fetch_assoc($result);
echo 
"<strong> VALOR TOTAL EN ACTIVOS </strong> =  ".$valores["total"]." <strong>Bs.F.</strong>";
?>
Mis creditos a GatorV por su ayuda!