grazie mille...Da PAURA!! 
ho un'altro problemino ossia:
ho delle select option che popolo da DB e due input text per il confronto delle date.
Non riesco a fare un controllo per cui, se scelto le date + il quartiere e poi faccio il submit mi invia soltanto la select con le date e non comprende il quartiere. Questo è quello che faccio:
codice:
<form action='pag.php' method='get'>
Da:<input type="text" name="dataDa" class="INPUT" value="" maxlength="10" size="10">
a:<input type="text" name="dataA" class="INPUT" value="" maxlength="10" size="10">
<?
<select name="txtQuartiere2" style="width:205px" class="INPUT">
<option value=""></option>
<option value="primo">Primo</option>
<option value="secondo">Secondo</option>
</select>
</form>
?>
//questo è il controllo nella pag.php
$dataDa = $_GET['dataDa'];
$_SESSION['dataDa'] = $dataDa;
$dataA = $_GET['dataA'];
$_SESSION['dataA'] = $dataA;
$txtQuartiere2 = $_GET['txtQuartiere2'];
$_SESSION['txtQuartiere2'] = $txtQuartiere2;
$query = ("SELECT * FROM TB_STORICO") or die ("Non è possibile eseguire la Select Count: " . mysql_error());
if($dataDa =="" && $dataA=="" && $txtQuartiere2==""){
echo "Ricerca fallita";
exit;
}
else{
if($dataDa!="" && $dataA!=""){
$select .= (" where data BETWEEN '$dataDa' AND '$dataA'");
echo "$Afont Ricerca effettuata per data dal: " . $dataDa ." al " . $dataA ." $Cfont
";
}
elseif($txtQuartiere2!=""){
$select .= (" where quartiere like '%$txtQuartiere2%'");
echo "$Afont Ricerca effettuata per Quartiere di: " . $txtQuartiere2 ." $Cfont
";
}
elseif($dataDa!="" && $dataA!="" && $txtQuartiere2!=""){
$select .= (" where quartiere like '%$txtQuartiere2%' and data BETWEEN '$dataDa' AND '$dataA'");
echo "$Afont Ricerca effettuata per data dal: " . $dataDa ." al " . $dataA ." e quartiere $Cfont
";
}
$res = "SELECT * FROM TB_STORICO" . $select . " order by protocollo_urp Desc");
if (!$res[0]) {
echo "Nessun risultato";
exit;
}
else{
//questa mi serve per la paginazione
include('tabellaPaginazione.php');
}
echo "".$res[1];
}
}
Se puoi o potete darmi una mano per favore...Grazie mille...!!!