$resMax=mysql_db_query("shiloh","SELECT sum(BDmonto) as totales, max(BDmonto) as maximo FROM $tabla");