Ho una funzione che prende delle stringhe da un db e crea un Drop Down che salta al volo ad una certa pagina
codice:
$sql_pag = mysql_query("SELECT * FROM Lingue ORDER BY IDLingue DESC") or die( mysql_error( ) ); 		
$res_amt = mysql_num_rows($sql_pag); 	    
$last = ceil($res_amt/$limit);    
 if(!isset($_GET['page']) || $_GET['page'] < 1) 			
{ 			
$page = 1; 			
}else 				
{ 				
$page = $last; 				
} 		 
//This sets the range to display in our query          
$max = 'limit ' .($page - 1) * $limit .',' .$limit; 	
$offset = ceil(($page - 1) * $limit); 		
$str = '<select name="listingMenu" class="textFields" onchange="jumpMenu(\'parent',this,0)">'; 		
$sql = mysql_query("SELECT * FROM Lingue ORDER BY IDLingue DESC ") or die( mysql_error() ); 	     	
while($rows = mysql_fetch_assoc($sql)) 			
{ 			  			
$str .= '<option value="index.php?modID=87&compID=104&id='.$rows['IDLingue'].'&page='.$page.'#'.$rows['IDLingue'].'">[['.$rows['IDLingue'].']]</option>'; 			} 		
$str .= "</select>"; 		
return $str;
Il problema è questo qui nella riga di codice
codice:
&page='.$page.'#'.$rows['IDLingue'].'"
deve essere messo il giusto #ID per la pagina corrispondente, adesso salta nella pagina giusta, ma non mette il giusto ID.
Speriamo bene
Luca