Ciao a tutti,

sto cercando di imparare a fare un menu per passare ai prossimi record fino adesso ho fatto questo ma non funziona, sto cercando di capire come fare ma non riesco ad arrivarci!
c'é qualcuno che é disposto a spiegarmi gentilmente come funziona?

il mio codice che fara ridere qualcuno é:

Codice PHP:
<?php require_once("config.inc.php");?>

<?php
$maxRecord 
2;
$id $_GET['next'];

mysql_select_db($database_name$conn);
$sql "SELECT * FROM tb_clienti LIMIT $id,$maxRecord";
$query mysql_query($sql) or die (mysql_error());


mysql_select_db($database_name$conn);
$sql1 "SELECT * FROM tb_clienti";
$query1 mysql_query($sql1);
$totRecord1 mysql_num_rows($query1);
$page $totRecord1 $maxRecord;
echo 
$page."
"
.$id;
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>


Menu a numeri</p>
<table width="200" border="1" cellspacing="0" cellpadding="0">
  <?php do{;?><tr>
    <td><?php echo $result_row['cli_nome'];?></td>
  </tr><?php } while ($result_row mysql_fetch_assoc($query));?>
</table>

<table width="500" border="1" cellspacing="0" cellpadding="0">
  <tr>
    <td><?php for($i=1;$i<=$page;$i++) {
    echo 
"<a href=\"menu.php?page=$i&next=$page\">$i </a>";
    }
    
?></td>
  </tr>
</table>


</p>


 </p>
</body>
</html>
Grazie Michel