Il codice che sto usando al  momento è questo (..tenete conto che ho  iniziato da una settimanetta a cercar di imparar qualcosa..... ):
	codice:
	
.....
  <head>
      
      <title> Registrazioni </title>
      
  </head>
  <body>
      <center><h2>Ultimi Valori Registrati</h2></center>
    
 <center>
    <table border = "3" > 
<Caption><strong><h2>VALORI REGISTRATI</h2></strong></Caption>    
  <thead>
       <tr>
         <th>DATA REGISTRAZIONE.</th>
         <th> -- </th>
         <th>T.ESTERNA</th>
         <th> -- </th>
         <th>T.INTERNA</th>
         <th> -- </th>
         <th>PRESSIONE ATM.</th>
         <th> -- </th>
         <th>PIOGGIA</th>
         <th> -- </th>
         <th>DIR.VENTO</th>
         <th>-- </th>
         <th>MEDIA VENTO</th>
         <th> -- </th>
         <th>RAFF.VENTO</th>
      </tr>
   </thead>   
    </table> 
<div style="height:300px;overflow:auto"> 
<table border = "3" > 
   <thead>  
       <tr>
         <th>-----------------------------------</th>
         <th> -- </th>
         <th>----------------</th>
         <th> -- </th>
         <th>----------------</th>
         <th> -- </th>
         <th>-------------------------</th>
         <th> -- </th>
         <th>-------------</th>
         <th> -- </th>
         <th>---------------</th>
         <th>-- </th>
         <th>---------------------</th>
         <th> -- </th>
         <th>-----------------</th>
      </tr> 
   </thead>  
<?php $db_connection= mysql_connect(my_database,user,password);
$db_selection = mysql_select_db(my_database,$db_connection);
$registrazioni = 120;     
$query = mysql_query("SELECT * FROM TABELLA ORDER BY TIMESTAMP_LOCAL DESC LIMIT $registrazioni");
 while($cicle=mysql_fetch_array($query)){
 echo "
      <tr>
            <td><CENTER> ".$cicle['TIMESTAMP_LOCAL']."</td>
            <td> --- </td>
            <td><CENTER> ".$cicle['TEMP']."</td>
            <td> --- </td>
            <td><CENTER> ".$cicle['TEMPINT']."</td>
            <td> --- </td>
            <td><CENTER> ".$cicle['PRESSURE']."</td>
            <td> --- </td>
            <td><CENTER> ".$cicle['RAIN']."</td>
            <td> --- </td>
            <td><CENTER> ".$cicle['WINDIR_CODE']."</td>
            <td> --- </td>
            <td><CENTER> ".$cicle['WIND_AVE']."</td>
            <td> --- </td>
            <td><CENTER> ".$cicle['WIND_GUST']."</td>
     </tr>";
}
?>   
</table>
       </div>
</center>   
      
      </body>
.......
 
Ho  inserito la Variabile "registrazioni" pensando di usare quella per far  decidere all'utente quanti valori far estrarre.. ma il come farlo per  ora on riesco.. pensavo inserendo qualche modulo ma no riesco a scrivere  nel modo corretto il codice..
Pensavo di scrivere da qualche parte qualcosa tipo questo :
                 
	codice:
	 <form method="post"> 
                  Registrazioni da estrarre: <input type="text" name="numero"/>
                  </form>
 
ma mi fermo lì.. non so come andare avanti..
Grazie