![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
30/11/2011, 09:48
|
![Avatar de CesarHC](http://static.forosdelweb.com/customavatars/avatar415805_5.gif) | | | Fecha de Ingreso: junio-2011 Ubicación: localhost
Mensajes: 566
Antigüedad: 13 años, 8 meses Puntos: 56 | |
Respuesta: Como sumar valores de una tabla Seria algo asi:
Código PHP:
Ver original<?php require_once("../datos/conex.php"); $result = mysql_query("SELECT SUM(deuda) as suma from personal", $link); echo $row['suma']; } ?>
__________________ Solo la práctica no te traicionara ¡¡¡¡¡¡
Seguir el camino tu debes PHP The Right Way. |