me da 0 de resultado!
Código PHP:
Ver original<?php
$fecha1 = '2011-06-18';
$lastcut2=mysql_query("select * from ingresos where fecha between $fecha1 and $fecha2"); $suma+=$row_lastcut2["ingresos"];
$resta+=$row_lastcut2["egresos"];
}
echo $suma+=$row_lastcut2["ingresos"];
?>