Tout d'abord je suis debutant en php et J'ai un petit pb

,jarrive pas a trouver l'erreur dans mon script de pagination pour une requete SQL qui retourn bcp de resultat sur different page.AIDEz MOI SVP!!
<?
include("connect.inc.php"); //parametre de connection
include("heads.inc.php");
$request=$_SERVER['REQUEST_METHOD'];
($request=="POST")?$choix=$_POST['choix']:$choix=$_GET['choix'];
($request=="POST")? $debut=0 : $debut=$_GET['debut'];
($request=="POST")? $fin=5: $fin=$_GET['fin'];
if($choix==NULL)
echo"<center><strong>VOUS AVEZ FAIT AUCUN CHOIX.</strong></center>";
else{
$query="SELECT id_style FROM style WHERE (style.style)='$choix'";
$resultat=mysql_query($query);
while($tableau=mysql_fetch_array($resultat)){
$id_style=$tableau["id_style"];
}
$queryno="SELECT no FROM possede WHERE (possede.id_style)='$id_style' ";
$resultatno=mysql_query($queryno);
$nbno=mysql_num_rows($resultatno);
//($nbno==o)?echo"<center><strong>Il n'y a pas encore de script pour la rubrique $choix.</strong></center>":CONTINUE;
$queryno="SELECT no FROM possede WHERE (possede.id_style)='$id_style' LIMIT $debut,$fin";
$resultatno=mysql_query($queryno);
while($tableauno=mysql_fetch_array($resultatno)){
$no=$tableauno["no"];
$queryid="SELECT id,script FROM script WHERE (script.no)='$no' LIMIT $debut,$fin";
$resultatid=mysql_query($queryid);
while($tableauid=mysql_fetch_array($resultatid)){
$id=$tableauid["id"];
$script=$tableauid["script"];
$queryren="SELECT rendu FROM rendu WHERE (rendu.id)='$id' LIMIT $debut,$fin";
$resultatren=mysql_query($queryren);
while($tableauren=mysql_fetch_array($resultatren)){
$rendu=$tableauren["rendu"];
echo"<center>$rendu</center>";
echo"<center>$script</center>";
echo"<center>#################################################################</center>";
echo"<center>#################################################################</center>";
}
}
}
}
$nbrp=ceil($nbno/$fin);
echo"<center>";
if($nbrp>=2)
{
if(isset($_GET['page']))
{
if($_GET['page']==1){echo"PRECEDENT";}
else{
$deb=$debut-$fin;
echo"<a href='sanip.php?page=".($_GET['page']-1)."&choix=$choix&fin=$fin&debut=$deb'>PRECEDENT</a>";
}
}
else{echo"PRECEDENT";}
}
for($i=0;$i<$nbrp;$i++)
{
$deb=$debut+$fin;
echo"<a href='sanip.php?page=".($i+1)."&choix=$choix&fin=$fin&debut=$deb'>PAGE".($i+1)."-</a>";
}
if($nbrp>=2)
{
if(isset($_GET['page']))
{
if($_GET['page']==$nbrp){echo"SUIVANT";}
else{
$deb=$debut+$fin;
echo"<a href='sanip.php?page=".($i+1)."&choix=$choix&fin=$fin&debut=$deb'>SUIVANT</a>";
}
}
else{echo"SUIVANT";}
echo"</center>";
echo"<hr width=80% align=\"middle\" />
<center><strong><a href='anip.php'>RETOUR A LA PAGE D'ACCEUIL</a></strong></center>";
}
include("foot.inc.php");
?>