Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/10/2010, 01:33
sentnel
 
Fecha de Ingreso: octubre-2010
Mensajes: 122
Antigüedad: 14 años, 4 meses
Puntos: 6
Something wrong here and dont know what it is!

Hello!

I have this query:

Código PHP:
           <?PHP
                $SQL 
"SELECT
SUM(pte_circuns_her_arm_fuego) FROM jos_polnac_partediario_gen
WHERE departamento_pn="
1" AND fecha_hora_partediario BETWEEN DATE ('2010-10-17 17:33:00') AND ('2010-10-20 00:55:00')";
                
?>

When I run the query in SQLYog returns the total of 32, which is correct.

I can't get to "echo" this value. Can you please show me the correct way of echoing this result?

Thanks!