ho provato a fare in questo modo ma non funziona:

Codice PHP:

        
...
    
        
$scelta $_POST['scelta'];
                
    include(
"config.php");
    require_once(
"CSSPagination.php");
        
        
        if(
$scelta == "data" || $scelta == ""){
       
           
$ordina "libro.data DESC,libro.prezzo ASC";   
       
        }
   
       if(
$scelta == "prezzo"){
       
      
$ordina "libro.prezzo ASC,libro.data DESC";   
       
        }
       
     
// connessione db

$sql1 "SELECT ... WHERE libro.titolo LIKE '%".$titolo."%'";
$rowsperpage 5// 5 records per page. You can change it.
$website $_SERVER['PHP_SELF']."?id=1&ordine=".$scelta// other arguments if need it.
$pagination = new CSSPagination($sql1$rowsperpage$website); // create instance object
$pagination->setPage($_GET[page]); // dont change it

echo $pagination->showPage();

echo 
"<form method='post' action=''>";
echo    
"<select class='noFocus' name='scelta'>";
echo    
"    <option value='data' selected='selected'>data</option>";
echo    
"        <option value='prezzo'>prezzo</option>";
echo    
"  </select>";
echo  
"<input class='button' type='submit' value='ORDINA'/>";
echo 
"</form>";

// Second select is similar at the top one, but it follows by limitation.

$sql2 "SELECT ... WHERE libro.titolo LIKE '%".$titolo."%' ORDER BY $ordina LIMIT " $pagination->getLimit() . ", " $rowsperpage;

$result mysql_query($sql2$link) or die("failed");

while (
$r mysql_fetch_array($result)){
     
//risultati 
Così funziona come prima nella prima pagina funziona e le altre no.
devo modificare anche i link della paginazione della classe?
Grazie per la risposta e per l'aiuto