![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
04/10/2011, 11:04
|
![Avatar de Melecio](http://static.forosdelweb.com/customavatars/avatar423121_1.gif) | | | Fecha de Ingreso: julio-2011 Ubicación: Coahuila
Mensajes: 320
Antigüedad: 13 años, 7 meses Puntos: 8 | |
Respuesta: phpmysql no imprimir registros iguales "SELECT DISTINCT operacion,operacion_descripcion ,numero_de_parte, cantidad from produccion where numero_de_empleado = '$OPERADORR' and fecha = '$BUSFECHA' ORDER BY operacion ASC "
asi funciona bien pero quisiera sumar el campo cantidad ejemplo
valor1 122
valor1 122
valor2 122
valor2 122
lo quisiera asi
valor1 244
valor2 244 |