exemplo:
ao selecionar esta data ele execulte este escript<select name="select" id="select">
<option value="01/02/2010">01/02/2010</option>
</select>
<?php
$CONSULTA = " SELECT SUM( `ans1` ) AS somatorio FROM cadastro WHERE data = 01/02/2010";
$CONSULTA = mysql_query($CONSULTA) or die(mysql_error());
$RESULTADO = mysql_fetch_assoc($CONSULTA);echo "Total vendido no dia 01/02/2010: R$ ".
$RESULTADO['somatorio']." <br>"; ?>
e assim com outras datas quando selecionada
alguem pode me ajudar.










